Browse Source

add_port_security_extension_support

Change-Id: Ieee93cc04c989567b4aecd70e38437a3465f5e02
Harkirat Singh 3 years ago
parent
commit
b614445c71
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      networking_brocade/vyatta/vrouter/neutron_plugin.py

+ 5
- 1
networking_brocade/vyatta/vrouter/neutron_plugin.py View File

@@ -34,6 +34,7 @@ from neutron.db import l3_dvr_db
34 34
 from neutron.db import l3_gwmode_db
35 35
 from neutron.db import models_v2
36 36
 from neutron.extensions import l3
37
+from neutron.extensions import portsecurity as psec
37 38
 from neutron.i18n import _LE
38 39
 from neutron.plugins.common import constants
39 40
 
@@ -224,6 +225,7 @@ class VyattaVRouterMixin(common_db_mixin.CommonDbMixin,
224 225
             port = self._core_plugin.update_port(
225 226
                 context.elevated(), port['id'], {'port': {
226 227
                     'tenant_id': config.VROUTER.tenant_id,
228
+                    psec.PORTSECURITY: False,
227 229
                 }})
228 230
             port_created = False
229 231
         elif 'subnet_id' in interface_info:
@@ -260,6 +262,7 @@ class VyattaVRouterMixin(common_db_mixin.CommonDbMixin,
260 262
                     'device_id': '',
261 263
                     'device_owner': '',
262 264
                     'name': '',
265
+                    psec.PORTSECURITY: False,
263 266
                 }
264 267
             })
265 268
             port_created = True
@@ -491,7 +494,8 @@ class VyattaVRouterMixin(common_db_mixin.CommonDbMixin,
491 494
                 'device_owner': '',
492 495
                 'device_id': '',
493 496
                 'admin_state_up': True,
494
-                'name': ''
497
+                'name': '',
498
+                psec.PORTSECURITY: False,
495 499
             }})
496 500
 
497 501
         if not gw_port['fixed_ips']:

Loading…
Cancel
Save