mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Cross-reference MAC address migrators
This commit is contained in:
parent
5a0d33a4a8
commit
71ee2a996e
@ -55,6 +55,7 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
|
||||
# See peer migrator in virtualization.0048_populate_mac_addresses before making changes
|
||||
def oc_interface_primary_mac_address(objectchange, reverting):
|
||||
MACAddress = apps.get_model('dcim', 'MACAddress')
|
||||
interface_ct = ContentType.objects.get_by_natural_key('dcim', 'interface')
|
||||
|
@ -54,6 +54,7 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
|
||||
# See peer migrator in dcim.0200_populate_mac_addresses before making changes
|
||||
def oc_vminterface_primary_mac_address(objectchange, reverting):
|
||||
MACAddress = apps.get_model('dcim', 'MACAddress')
|
||||
vminterface_ct = ContentType.objects.get_by_natural_key('virtualization', 'vminterface')
|
||||
|
Loading…
Reference in New Issue
Block a user