Merge "NSX|V3: Fix LB advertisment to use admin context"

This commit is contained in:
Zuul 2019-02-19 11:02:30 +00:00 committed by Gerrit Code Review
commit 214d7e831e
1 changed files with 2 additions and 1 deletions

View File

@ -229,7 +229,8 @@ def update_rule_in_policy(rule):
def update_router_lb_vip_advertisement(context, core_plugin, router,
nsx_router_id):
# Add a rule to advertise external vips on the router
external_subnets = core_plugin._find_router_gw_subnets(context, router)
external_subnets = core_plugin._find_router_gw_subnets(
context.elevated(), router)
external_cidrs = [s['cidr'] for s in external_subnets]
if external_cidrs:
adv_rule = {