Browse Source

Delete port security bindings on existing port

If router interface added by port it is required delete
security group bindings before update port_security
attribute on port

Change-Id: Ib949a849119b7a440fd34843a9105aff317e08ed
Harkirat Singh 3 years ago
parent
commit
6f6075a2c9
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      networking_brocade/vyatta/vrouter/neutron_plugin.py

+ 2
- 0
networking_brocade/vyatta/vrouter/neutron_plugin.py View File

@@ -222,6 +222,8 @@ class VyattaVRouterMixin(common_db_mixin.CommonDbMixin,
222 222
                                                   subnet['id'],
223 223
                                                   subnet['cidr'])
224 224
             port_tenant_id = port['tenant_id']
225
+            self._core_plugin._delete_port_security_group_bindings(
226
+                context.elevated(), port['id'])
225 227
             port = self._core_plugin.update_port(
226 228
                 context.elevated(), port['id'], {'port': {
227 229
                     'tenant_id': config.VROUTER.tenant_id,

Loading…
Cancel
Save