Previous topic

The nova.network.dns_driver Module

Next topic

The nova.network.ldapdns Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

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)

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

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)
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)
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)
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 shuld not manipulate L3 forwarding at all (e.g., in a Flat or FlatDHCP scenario

add_floating_ip(floating_ip, fixed_ip, l3_interface_id)
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)
remove_gateway(network_ref)
remove_vpn(public_ip, port, private_ip)
teardown()