-
Hi, new_ip = nb.ipam.ip_addresses.create( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is a generic relation, because an IP address can be assigned to either an Interface (on a Device) or a VMInterface. You need to set Here is some code which creates a virtual machine + interface + primary IPv4 + primary IPv6
Note the addresses created with |
Beta Was this translation helpful? Give feedback.
This is a generic relation, because an IP address can be assigned to either an Interface (on a Device) or a VMInterface. You need to set
assigned_object_type
andassigned_object_id
Here is some code which creates a virtual machine + interface + primary IPv4 + primary IPv6