Bases: object
Returns the currently used VIF associated with port or portgroup
We are booting the node only in one network at a time, and presence of cleaning_vif_port_id means we’re doing cleaning, of provisioning_vif_port_id - provisioning. Otherwise it’s a tenant network
| Parameters: |
|
|---|---|
| Returns: | VIF ID associated with p_obj or None. |
Handle any actions required when a port changes
| Parameters: |
|
|---|---|
| Raises: | FailedToUpdateDHCPOptOnPort, Conflict |
Handle any actions required when a portgroup changes
| Parameters: |
|
|---|---|
| Raises: | FailedToUpdateDHCPOptOnPort, Conflict |
Attach a virtual network interface to a node
Attach a virtual interface to a node. It will use the first free port group. If there are no free port groups, then the first available port (pxe_enabled preferably) is used.
| Parameters: |
|
|---|---|
| Raises: | NetworkError, VifAlreadyAttached, NoFreePhysicalPorts |