The nova.network.l3 Module

class L3Driver(l3_lib=None)

Bases: object

Abstract class that defines a generic L3 API.

add_floating_ip(floating_ip, fixed_ip, l3_interface_id, network=None)

Add a floating IP bound to the fixed IP with an optional l3_interface_id. Some drivers won’t care about the l3_interface_id so just pass None in that case. Network is also an optional parameter.

add_vpn(public_ip, port, private_ip)
initialize(**kwargs)

Set up basic L3 networking functionality.

initialize_gateway(network)

Set up a gateway on this network.

initialize_network(network)

Enable rules for a specific network.

is_initialized()
Returns:True/False (whether the driver is initialized).
remove_floating_ip(floating_ip, fixed_ip, l3_interface_id, network=None)
remove_gateway(network_ref)

Remove an existing gateway on this network.

remove_vpn(public_ip, port, private_ip)
teardown()
class LinuxNetL3

Bases: nova.network.l3.L3Driver

L3 driver that uses linux_net as the backend.

add_floating_ip(floating_ip, fixed_ip, l3_interface_id, network=None)
add_vpn(public_ip, port, private_ip)
initialize(**kwargs)
initialize_gateway(network_ref)
initialize_network(cidr)
is_initialized()
remove_floating_ip(floating_ip, fixed_ip, l3_interface_id, network=None)
remove_gateway(network_ref)
remove_vpn(public_ip, port, private_ip)
teardown()
class NullL3

Bases: nova.network.l3.L3Driver

The L3 driver that doesn’t do anything. This class can be used when nova-network should not manipulate L3 forwarding at all (e.g., in a Flat or FlatDHCP scenario).

add_floating_ip(floating_ip, fixed_ip, l3_interface_id, network=None)
add_vpn(public_ip, port, private_ip)
initialize(**kwargs)
initialize_gateway(network_ref)
initialize_network(cidr)
is_initialized()
remove_floating_ip(floating_ip, fixed_ip, l3_interface_id, network=None)
remove_gateway(network_ref)
remove_vpn(public_ip, port, private_ip)
teardown()

Previous topic

The nova.network.floating_ips Module

Next topic

The nova.network.ldapdns Module

This Page