We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23c3240 commit 9fae2b0Copy full SHA for 9fae2b0
startup_scripts/240_virtualization_interfaces.py
@@ -1,5 +1,4 @@
1
-from dcim.models import Interface
2
-from virtualization.models import VirtualMachine
+from virtualization.models import VirtualMachine, VMInterface
3
from extras.models import CustomField, CustomFieldValue
4
from startup_script_utils import load_yaml
5
import sys
@@ -22,7 +21,7 @@
22
21
23
params[assoc] = model.objects.get(**query)
24
25
- interface, created = Interface.objects.get_or_create(**params)
+ interface, created = VMInterface.objects.get_or_create(**params)
26
27
if created:
28
if custom_fields is not None:
0 commit comments