Bases: nova.network.model.IP
Represents a Fixed IP address in Nova.
Bases: nova.network.model.Model
Represents an IP address in Nova.
Bases: dict
Defines some necessary structures for most of the network models.
calls get(key, default) on self[‘meta’].
Bases: nova.network.model.Model
Represents a Network in Nova.
Bases: list
Stores and manipulates network information for a Nova instance.
Returns all fixed_ips without floating_ips attached.
Returns all floating_ips.
Bases: nova.network.model.NetworkInfo
Wrapper around NetworkInfo that allows retrieving NetworkInfo in an async manner.
This allows one to start querying for network information before you know you will need it. If you have a long-running operation, this allows the network model retrieval to occur in the background. When you need the data, it will ensure the async operation has completed.
As an example:
network_info = NetworkInfoAsyncWrapper(allocate_net_info, arg1, arg2) [do a long running operation – real network_info will be retrieved in the background] [do something with network_info]
Wait for async call to finish.
Bases: nova.network.model.Model
Represents an IP Route in Nova.
Bases: nova.network.model.Model
Represents a Subnet in Nova.
Convience function to get cidr as a netaddr object.
Bases: nova.network.model.Model
Represents a Virtual Interface in Nova.
Returns the list of all IPs
The return value looks like this flat structure:
{'network_label': 'my_network',
'network_id': 'n8v29837fn234782f08fjxk3ofhb84',
'ips': [{'address': '123.123.123.123',
'version': 4,
'type: 'fixed',
'meta': {...}},
{'address': '124.124.124.124',
'version': 4,
'type': 'floating',
'meta': {...}},
{'address': 'fe80::4',
'version': 6,
'type': 'fixed',
'meta': {...}}]
Bases: nova.network.model.Model
Represents the parameters for a 802.1qbg VIF.
Bases: nova.network.model.Model
Represents the parameters for a 802.1qbh VIF.
Returns the netmask appropriate for injection into a guest.