Abstraction layer for networking functionalities.
This module defines internal APIs for duplicated features between OpenStack Compute and OpenStack Networking. The networking abstraction layer expects methods defined in this module.
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 a floating IP.
Associates the floating IP to the port.
port_id is a fixed IP of an instance (Nova) or a port_id attached to a VNIC of an instance.
Disassociates the floating IP specified.
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.
Parameters: |
|
---|
Returns True if the default floating IP pool is enabled.
Returns True if floating IP feature is supported.
Fetches a list of 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 instance’s target IDs of floating IP association.
Based on the backend implementation
Parameters: |
|
---|
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
Abstract class to implement Security Group methods
SecurityGroup object returned from methods in this class must contains the following attributes:
SecurityGroupRule object should have the following attributes (The attribute names and their formats are borrowed from nova security group implementation):
Create a new security group.
It returns a SecurityGroup object created.
Delete the specified security group.
Fetches the security group.
It returns a SecurityGroup object corresponding to sg_id.
Fetches a list all security groups.
A returned value is a list of SecurityGroup object.
Get security groups of an instance.
Create a new security group rule.
Parameters: |
|
---|
Delete the specified security group rule.
Update security groups of a specified instance.