The midonet.neutron.services.l2gateway.plugin Module

The midonet.neutron.services.l2gateway.plugin Module

class midonet.neutron.services.l2gateway.plugin.MidonetL2GatewayPlugin

Bases: networking_l2gw.services.l2gateway.plugin.L2GatewayPlugin, midonet.neutron.db.l2gateway_midonet.MidonetL2GatewayMixin

Implementation of the Neutron l2 gateway Service Plugin.

This class manages the workflow of Midonet l2 Gateway request/response. The base plugin methods are overridden because the MidoNet driver requires specific ordering of events. For creation, the Neutron data must be created first, with the resource UUID generated. Also, for both creation and deletion, by invoking the Neutron DB methods first, all the validations, such as ‘check_admin()’ are executed prior to attempting to modify the MidoNet data, preventing potential data inconsistency.

add_port_mac(context, port_dict)
create_l2_gateway(context, l2_gateway)
create_l2_gateway_connection(*args, **kwargs)
delete_l2_gateway_connection(*args, **kwargs)
delete_port_mac(context, port)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.