The networking_cisco.plugins.cisco.l3.rpc.l3_router_cfg_agent_rpc_cb
Module¶
-
class
networking_cisco.plugins.cisco.l3.rpc.l3_router_cfg_agent_rpc_cb.
L3RouterCfgRpcCallback
(l3plugin)¶ Bases:
object
Cisco cfg agent rpc support in L3 routing service plugin.
-
cfg_sync_all_hosted_routers
(*args, **kwargs)¶
-
cfg_sync_routers
(*args, **kwargs)¶ Sync routers according to filters to a specific Cisco cfg agent.
Parameters: - context – contains user information
- host – originator of callback
- router_ids – list of router ids to return information about
- hosting_device_ids – list of hosting device ids to get routers for.
Returns: a list of routers with their hosting devices, interfaces and floating_ips
-
get_cfg_router_ids
(context, host, router_ids=None, hosting_device_ids=None)¶ Returns IDs of routers scheduled to l3 agent on <host>
-
report_status
(context, host, status_list)¶ Report status of a particular Neutron router by Cisco cfg agent.
This is called by Cisco cfg agent when it has performed an operation on a Neutron router. Note that the agent may include status updates for multiple routers in one message.
Parameters: - context – contains user information
- host – originator of callback
- status_list –
list of status dicts for routers. Each list item is:
{'router_id': <router_id>, 'operation': <attempted operation> 'status': <'SUCCESS'|'FAILURE'>, 'details': <optional explaining details>}
-
target
= <Target version=1.3>¶
-
update_floatingip_statuses_cfg
(*args, **kwargs)¶ Update operational status for one or several floating IPs.
This is called by Cisco cfg agent to update the status of one or several floatingips.
Parameters: - context – contains user information
- router_id – id of router associated with the floatingips
- router_id – dict with floatingip_id as key and status as value
-
update_port_statuses_cfg
(*args, **kwargs)¶ Update the operational statuses of a list of router ports.
This is called by the Cisco cfg agent to update the status of a list of ports.
Parameters: - context – contains user information
- port_ids – list of ids of all the ports for the given status
- status – PORT_STATUS_ACTIVE/PORT_STATUS_DOWN.
-