Browse Source

Add extra parameter in _make_router_interface_info

Change-Id: I47f6c77ec430ed329b0fcdd85719f09dd0721869
Harkirat Singh 4 years ago
parent
commit
8af7d8f4d4
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      networking_brocade/vyatta/vrouter/neutron_plugin.py

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

@@ -290,9 +290,10 @@ class VyattaVRouterMixin(common_db_mixin.CommonDbMixin,
290 290
             )
291 291
             context.session.add(router_port)
292 292
 
293
+        subnet_id = port['fixed_ips'][0]['subnet_id']
293 294
         router_interface_info = self._make_router_interface_info(
294 295
             router_id, port['tenant_id'], port['id'],
295
-            port['fixed_ips'][0]['subnet_id'])
296
+            subnet_id, [subnet_id])
296 297
         self.notify_router_interface_action(
297 298
             context, router_interface_info, 'add')
298 299
         return router_interface_info
@@ -359,7 +360,8 @@ class VyattaVRouterMixin(common_db_mixin.CommonDbMixin,
359 360
         self._delete_router_port(context, router_id, port)
360 361
 
361 362
         router_interface_info = self._make_router_interface_info(
362
-            router_id, subnet['tenant_id'], port['id'], subnet['id'])
363
+            router_id, subnet['tenant_id'], port['id'],
364
+            subnet['id'], [subnet['id']])
363 365
         self.notify_router_interface_action(
364 366
             context, router_interface_info, 'remove')
365 367
         return router_interface_info

Loading…
Cancel
Save