From 48ca896e8ec2ce9b6cfd0fb2830813b57ab4e528 Mon Sep 17 00:00:00 2001 From: Kobi Samoray Date: Tue, 2 Apr 2019 12:47:33 +0300 Subject: [PATCH] NSXP: Use router entity on call to get_realized_id Change-Id: If052b318c65603e5444f8fb493e7c88d00b2f709 --- vmware_nsx/services/lbaas/nsx_p/implementation/lb_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmware_nsx/services/lbaas/nsx_p/implementation/lb_utils.py b/vmware_nsx/services/lbaas/nsx_p/implementation/lb_utils.py index 6173694158..52a6a7c6a8 100644 --- a/vmware_nsx/services/lbaas/nsx_p/implementation/lb_utils.py +++ b/vmware_nsx/services/lbaas/nsx_p/implementation/lb_utils.py @@ -139,7 +139,8 @@ def update_router_lb_vip_advertisement(context, core_plugin, router_id): if cfg.CONF.nsx_p.allow_passthrough: lb_utils.update_router_lb_vip_advertisement( context, core_plugin, router, - core_plugin.nsxpolicy.tier1.get_realized_id(router_id)) + core_plugin.nsxpolicy.tier1.get_realized_id( + router_id, entity_type='RealizedLogicalRouter')) else: msg = (_('Failed to set loadbalancer advertisement rule for router %s') % router_id)