Bases: nova.db.base.Base
Base Network API for doing networking operations. New operations available on specific clients must be added here as well.
Create specified DNS entry for address.
Adds a fixed IP to instance from specified network.
Force adds another network to a project.
Adds (allocate) floating IP to a project from a pool.
Allocates all network structures for an instance.
Parameters: |
|
---|---|
Returns: | network info as from get_instance_nw_info() below |
Allocate port for instance.
Associate or disassociate host or project to network.
Associates a floating IP with a fixed IP.
Cleanup network for specified instance on host.
Parameters: |
|
---|
Create a network.
Check requested networks for any SR-IOV port request.
Create a PCI request object for each SR-IOV port, and add it to the pci_requests object that contains a list of PCI request object.
Create a private DNS domain with nova availability zone.
Create a public DNS domain with optional nova project.
Deallocates all network structures related to instance.
Deallocate port for instance.
Delete a specific network.
Delete the specified dns domain.
Delete the specified dns entry.
Disassociate a network for client.
Removes (deallocates) and deletes the floating IP.
Disassociates a floating IP from fixed IP it is associated with.
Get specific network for client.
Get all the networks for client.
Returns a list of available dns domains. These can be used to create DNS entries for floating IPs.
Get entries for address and domain.
Get entries for name and domain.
Get fixed IP by id.
Get fixed IP by address.
Get floating IP by id.
Get floating IP by address.
Get floating IP pools.
Get floating IPs by project.
Get instance id by floating address.
Returns all network info related to an instance.
Get vif mac address.
Get vifs by instance.
Parameters: |
|
---|---|
Returns: | nova.objects.virtual_interface.VirtualInterfaceList; the |
fields address, uuid and net_uuid should be set for each VIF object in the returned list.
List ports.
Finish migrating the network of an instance.
Start to migrate the network of an instance.
Create specified DNS entry for address.
Removes (deallocates) a floating IP with address from a project.
Removes a fixed IP from instance from specified network.
Setup network for specified instance on host.
Parameters: |
|
---|
Setup or teardown the network structures on hosts related to instance.
Show specific port.
Update instance vnic index.
When the ‘VNIC index’ extension is supported this method will update the vnic index of the instance on the port. A instance may have more than one vnic.
Parameters: |
|
---|
validate the networks passed at the time of creating the server.
Return the number of instances that can be successfully allocated with the requested network configuration.
Decorator to update the instance_info_cache
Requires context and instance as function args