I would switch these two around so that we don't get both in the dict:

```python
if 'addresses' in kwargs:
    port['ip_addresses'] = kwargs.pop('addresses')

port.update(kwargs)
```