Jelajahi Sumber

Fixes #4629: Replicate assigned interface when cloning IP addresses

Jeremy Stretch 5 tahun lalu
induk
melakukan
07fd92cd4c
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 0
      docs/release-notes/version-2.8.md
  2. 1 1
      netbox/ipam/models.py

+ 1 - 0
docs/release-notes/version-2.8.md

@@ -12,6 +12,7 @@ v2.8.4 (FUTURE)
 * [#4604](https://github.com/netbox-community/netbox/issues/4604) - Multi-position rear ports may only be connected to other rear ports
 * [#4607](https://github.com/netbox-community/netbox/issues/4607) - Missing Contextual help for API Tokens
 * [#4613](https://github.com/netbox-community/netbox/issues/4613) - Fix tag assignment on config contexts (regression from #4527)
+* [#4629](https://github.com/netbox-community/netbox/issues/4629) - Replicate assigned interface when cloning IP addresses
 * [#4633](https://github.com/netbox-community/netbox/issues/4633) - Bump django-rq to v2.3.2 to fix ImportError with rq 1.4.0
 * [#4634](https://github.com/netbox-community/netbox/issues/4634) - Inventory Item List view exception caused by incorrect accessor definition 
 

+ 1 - 1
netbox/ipam/models.py

@@ -640,7 +640,7 @@ class IPAddress(ChangeLoggedModel, CustomFieldModel):
         'dns_name', 'description',
     ]
     clone_fields = [
-        'vrf', 'tenant', 'status', 'role', 'description',
+        'vrf', 'tenant', 'status', 'role', 'description', 'interface',
     ]
 
     STATUS_CLASS_MAP = {