neutron_lib.agent.extension.
AgentExtension
¶Bases: object
Define stable abstract interface for agent extensions.
An agent extension extends the agent core functionality.
consume_api
(agent_api)¶Consume the AgentAPI instance from the AgentExtensionsManager.
Allows an extension to gain access to resources internal to the neutron agent and otherwise unavailable to the extension. Examples of such resources include bridges, ports, and routers.
Parameters: | agent_api – An instance of an agent-specific API. |
---|
initialize
(connection, driver_type)¶Perform agent core resource extension initialization.
Parameters: |
|
---|
Called after all extensions have been loaded. No resource (port, policy, router, etc.) handling will be called before this method.
neutron_lib.agent.l2_extension.
L2AgentExtension
¶Bases: neutron_lib.agent.extension.AgentExtension
Define stable abstract interface for l2 agent extensions.
An agent extension extends the agent core functionality.
delete_port
(context, data)¶Handle a port delete event.
Parameters: |
|
---|
handle_port
(context, data)¶Handle a port add/update event.
This can be called on either create or update, depending on the code flow. Thus, it’s this function’s responsibility to check what actually changed.
Parameters: |
|
---|
initialize
(connection, driver_type)¶Initialize agent extension.
Parameters: |
|
---|
neutron_lib.agent.l3_extension.
L3AgentExtension
¶Bases: neutron_lib.agent.extension.AgentExtension
Define stable abstract interface for l3 agent extensions.
An agent extension extends the agent core functionality.
add_router
(context, data)¶Handle a router add event.
Called on router create.
Parameters: |
|
---|
delete_router
(context, data)¶Handle a router delete event.
Parameters: |
|
---|
update_router
(context, data)¶Handle a router update event.
Called on router update.
Parameters: |
|
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.