neutron_lib.agent.l2_extension module¶
-
class
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.
-
abstract
delete_port
(context, data)¶ Handle a port delete event.
- Parameters
context – RPC context.
data – Port data.
-
abstract
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
context – RPC context.
data – Port data.
-
initialize
(connection, driver_type)¶ Initialize agent extension.
- Parameters
connection – RPC connection that can be reused by the extension to define its RPC endpoints
driver_type – String that defines the agent type to the extension. Can be used to choose the right backend implementation.
-
abstract