Abstraction layer for networking functionalities.
Currently Nova and Quantum have duplicated features. This API layer is introduced to astract the differences between them for seamless consumption by different dashboard implementations.
Bases: object
Abstract class to implement Floating IP methods
The FloatingIP object returned from methods in this class must contains the following attributes:
id: ID of Floating IP
ip: Floating IP address
pool: ID of Floating IP pool from which the address is allocated
fixed_ip: Fixed IP address of a VIF associated with the address
(instance_id when Nova floating IP is used)
instance_id: Instance ID of an associated with the Floating IP
Allocates a floating IP to the tenant.
You must provide a pool name or id for which you would like to allocate an floating IP.
Associates the floating IP to the port.
port_id is a fixed IP of a instance (Nova) or a port_id attached to a VNIC of a instance.
Disassociates the floating IP from the port.
port_id is a fixed IP of a instance (Nova) or a port_id attached to a VNIC of a instance.
Fetches the floating IP.
It returns a FloatingIp object corresponding to floating_ip_id.
Returns a target ID of floating IP association based on a backend implementation.
Returns True if the default floating IP pool is enabled.
Fetches a list all floating IPs.
A returned value is a list of FloatingIp object.
Fetches a list of all floating IP pools.
A list of FloatingIpPool objects is returned. FloatingIpPool object is an APIResourceWrapper/APIDictWrapper where ‘id’ and ‘name’ attributes are defined.
Returns a list of association targets of instance VIFs.
Each association target is represented as FloatingIpTarget object. FloatingIpTarget is a APIResourceWrapper/APIDictWrapper and ‘id’ and ‘name’ attributes must be defined in each object. FloatingIpTarget.id can be passed as port_id in associate(). FloatingIpTarget.name is displayed in Floating Ip Association Form.
Releases a floating IP specified.
Bases: object