Add 'fip-port-details' to OVN ML2 supported extensions
This extension will add information about the attached port in the floating IP dictionary. This extension is not mandatory but very handy because sometime this extra information avoids to make a second call to Neutron. Related-Bug: #1861876 Change-Id: I0175a2d00256e6d904cbcf25ad4a08aa825a9e18
This commit is contained in:
parent
6709cfcdfa
commit
50025935fe
@ -21,6 +21,7 @@ ML2_SUPPORTED_API_EXTENSIONS_OVN_L3 = [
|
||||
'router',
|
||||
'extraroute',
|
||||
'ext-gw-mode',
|
||||
'fip-port-details',
|
||||
'pagination',
|
||||
'sorting',
|
||||
'project-id',
|
||||
|
@ -35,6 +35,7 @@ from oslo_utils import excutils
|
||||
from neutron.common.ovn import constants as ovn_const
|
||||
from neutron.common.ovn import extensions
|
||||
from neutron.common.ovn import utils
|
||||
from neutron.db import l3_fip_port_details
|
||||
from neutron.db import ovn_revision_numbers_db as db_rev
|
||||
from neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb import impl_idl_ovn
|
||||
from neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb import ovn_client
|
||||
@ -48,7 +49,8 @@ LOG = log.getLogger(__name__)
|
||||
class OVNL3RouterPlugin(service_base.ServicePluginBase,
|
||||
extraroute_db.ExtraRoute_dbonly_mixin,
|
||||
l3_gwmode_db.L3_NAT_db_mixin,
|
||||
dns_db.DNSDbMixin):
|
||||
dns_db.DNSDbMixin,
|
||||
l3_fip_port_details.Fip_port_details_db_mixin):
|
||||
"""Implementation of the OVN L3 Router Service Plugin.
|
||||
|
||||
This class implements a L3 service plugin that provides
|
||||
|
@ -618,6 +618,7 @@ class FakeFloatingIp(object):
|
||||
'id': 'fip-id-' + fake_uuid,
|
||||
'tenant_id': '',
|
||||
'fixed_ip_address': '10.0.0.10',
|
||||
'fixed_port': FakePort.create_one_port(),
|
||||
'floating_ip_address': '172.21.0.100',
|
||||
'router_id': 'router-id',
|
||||
'port_id': 'port_id',
|
||||
|
Loading…
Reference in New Issue
Block a user