# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2012 Nicira Networks, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the “License”); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# @author: Dan Wendlandt, Nicira, Inc
#
-
class quantum.agent.l3_agent.L3NATAgent(host, conf=None)
Bases: quantum.manager.Manager
-
OPTS = [<oslo.config.cfg.StrOpt object at 0x3b35890>, <oslo.config.cfg.StrOpt object at 0x3b35f10>, <oslo.config.cfg.IntOpt object at 0x380dc90>, <oslo.config.cfg.IntOpt object at 0x380d4d0>, <oslo.config.cfg.BoolOpt object at 0x3b3a0d0>, <oslo.config.cfg.StrOpt object at 0x3b3a1d0>, <oslo.config.cfg.BoolOpt object at 0x3368090>, <oslo.config.cfg.StrOpt object at 0x3368110>]
-
after_start()
-
external_gateway_added(ri, ex_gw_port, internal_cidrs)
-
external_gateway_nat_rules(ex_gw_ip, internal_cidrs, interface_name)
-
external_gateway_removed(ri, ex_gw_port, internal_cidrs)
-
floating_forward_rules(floating_ip, fixed_ip)
-
floating_ip_added(ri, ex_gw_port, floating_ip, fixed_ip)
-
floating_ip_removed(ri, ex_gw_port, floating_ip, fixed_ip)
-
get_external_device_name(port_id)
-
get_internal_device_name(port_id)
-
internal_network_added(ri, ex_gw_port, network_id, port_id, internal_cidr, mac_address)
-
internal_network_nat_rules(ex_gw_ip, internal_cidr)
-
internal_network_removed(ri, ex_gw_port, port_id, internal_cidr)
-
metadata_filter_rules()
-
metadata_nat_rules()
-
process_router(ri)
-
process_router_floating_ips(ri, ex_gw_port)
-
router_added_to_agent(context, payload)
-
router_deleted(context, router_id)
Deal with router deletion RPC message.
-
router_removed_from_agent(context, payload)
-
routers_updated(context, routers)
Deal with routers modification and creation RPC message.
-
routes_updated(ri)
-
class quantum.agent.l3_agent.L3NATAgentWithStateReport(host, conf=None)
Bases: quantum.agent.l3_agent.L3NATAgent
-
agent_updated(context, payload)
Handle the agent_updated notification event.
-
class quantum.agent.l3_agent.L3PluginApi(topic, host)
Bases: quantum.openstack.common.rpc.proxy.RpcProxy
Agent side of the l3 agent RPC API.
- API version history:
- 1.0 - Initial version.
-
BASE_RPC_API_VERSION = '1.0'
-
get_external_network_id(context)
Make a remote process call to retrieve the external network id.
- @raise common.RemoteError: with TooManyExternalNetworks
- as exc_type if there are
more than one external network
-
get_routers(context, fullsync=True, router_id=None)
Make a remote process call to retrieve the sync data for routers.
-
class quantum.agent.l3_agent.RouterInfo(router_id, root_helper, use_namespaces, router)
Bases: object
-
ns_name()
-
quantum.agent.l3_agent.main()