nautobot / pynautobot

Nautobot Python SDK
https://pynautobot.readthedocs.io/en/latest/index.html
Apache License 2.0
36 stars 32 forks source link

nat_inside/outside don't seem to be available as attributes #38

Closed FragmentedPacket closed 2 years ago

FragmentedPacket commented 2 years ago
In [11]: ip = nb.ipam.ip_addresses.get(address="192.168.1.10/24")

In [12]: ip.nat_inside
Out[12]:

In [13]: ip.serialize()
Out[13]:
{'id': '6845e644-6031-4592-aa4e-1f62a317462c',
 'url': 'http://localhost:8080/api/ipam/ip-addresses/6845e644-6031-4592-aa4e-1f62a317462c/',
 'family': 4,
 'address': '192.168.1.10/24',
 'vrf': None,
 'tenant': None,
 'status': 'active',
 'role': None,
 'assigned_object_type': None,
 'assigned_object_id': None,
 'assigned_object': None,
 'nat_inside': '2cbff972-943f-4862-b9fc-b943ee2066fc',
 'nat_outside': None,
 'dns_name': '',
 'description': '',
 'tags': [],
 'custom_fields': {},
 'created': '2022-04-03',
 'last_updated': '2022-04-17T14:37:25.641707Z',
 'display': '192.168.1.10/24'}

It seems to correlate other FK fields such as tenant.

FragmentedPacket commented 2 years ago

Closed via #41

jvanderaa commented 2 years ago

In reality, IPv6 should be the answer here. @FragmentedPacket :)