NSXP: Use router entity on call to get_realized_id

Change-Id: If052b318c65603e5444f8fb493e7c88d00b2f709
This commit is contained in:
Kobi Samoray 2019-04-02 12:47:33 +03:00
parent 5774a61866
commit 48ca896e8e

View File

@ -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)