Merge "NSXP: Use router entity on call to get_realized_id"
This commit is contained in:
commit
fd24283209
@ -139,7 +139,8 @@ def update_router_lb_vip_advertisement(context, core_plugin, router_id):
|
|||||||
if cfg.CONF.nsx_p.allow_passthrough:
|
if cfg.CONF.nsx_p.allow_passthrough:
|
||||||
lb_utils.update_router_lb_vip_advertisement(
|
lb_utils.update_router_lb_vip_advertisement(
|
||||||
context, core_plugin, router,
|
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:
|
else:
|
||||||
msg = (_('Failed to set loadbalancer advertisement rule for router %s')
|
msg = (_('Failed to set loadbalancer advertisement rule for router %s')
|
||||||
% router_id)
|
% router_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user