The nova.network.l3 Module¶
-
class
L3Driver(l3_lib=None)¶ Bases:
objectAbstract 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)¶
-
clean_conntrack(fixed_ip)¶
-
initialize(**kwargs)¶ Set up basic L3 networking functionality.
-
initialize_gateway(network_ref)¶ Set up a gateway on this network.
-
initialize_network(cidr, is_external)¶ 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.L3DriverL3 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_external)¶
-
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.L3DriverThe 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)¶
-
clean_conntrack(fixed_ip)¶
-
initialize(**kwargs)¶
-
initialize_gateway(network_ref)¶
-
initialize_network(cidr, is_external)¶
-
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()¶
-