1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #1202: Support overlapping assignment of NAT IP addresses

This commit is contained in:
jeremystretch
2022-05-11 16:22:07 -04:00
parent e2a02de6e9
commit 01d2ede097
5 changed files with 35 additions and 5 deletions

View File

@@ -813,7 +813,7 @@ class IPAddress(NetBoxModel):
ct_field='assigned_object_type',
fk_field='assigned_object_id'
)
nat_inside = models.OneToOneField(
nat_inside = models.ForeignKey(
to='self',
on_delete=models.SET_NULL,
related_name='nat_outside',