Merge "NSX-V| Fix FWaaS deployment on distributed router"
This commit is contained in:
commit
63968c4962
@ -53,14 +53,16 @@ class EdgeFwaasDriver(fwaas_base.FwaasDriverBase):
|
|||||||
lookup_id = None
|
lookup_id = None
|
||||||
router_id = router_info.router_id
|
router_id = router_info.router_id
|
||||||
if router_info.router.get('distributed'):
|
if router_info.router.get('distributed'):
|
||||||
|
# Distributed router
|
||||||
# we need the plr edge id
|
# we need the plr edge id
|
||||||
lookup_id = edge_manager.get_plr_by_tlr_id(
|
lookup_id = edge_manager.get_plr_by_tlr_id(
|
||||||
context, router_id)
|
context, router_id)
|
||||||
if router_info.router.get('router_type') == 'shared':
|
elif router_info.router.get('router_type') == 'shared':
|
||||||
|
# Shared router (currently not supported)
|
||||||
LOG.info("Cannot apply firewall to shared router %s",
|
LOG.info("Cannot apply firewall to shared router %s",
|
||||||
router_id)
|
router_id)
|
||||||
else:
|
else:
|
||||||
# exclusive router
|
# Exclusive router
|
||||||
lookup_id = router_id
|
lookup_id = router_id
|
||||||
if lookup_id:
|
if lookup_id:
|
||||||
# look for the edge id in the DB
|
# look for the edge id in the DB
|
||||||
|
Loading…
x
Reference in New Issue
Block a user