NSX-V| add firewall rules to dhcp edge

When a new dhcp edge is created for a network that was just detached
from a distributed router, FW rules were not created, causing the
metadata not to work.

Change-Id: I4a60e45f4e5e16dafb13649b431d1f7fbacc9ab1
This commit is contained in:
Adit Sarfaty 2017-01-24 03:22:09 +02:00
parent df95b51df3
commit 157b118c00

View File

@ -490,6 +490,8 @@ class RouterDistributedDriver(router_driver.RouterBaseDriver):
if md_proxy_handler:
md_proxy_handler.configure_router_edge(
context, dhcp_id)
self.setup_dhcp_edge_fw_rules(context, self.plugin,
dhcp_id)
def _update_edge_router(self, context, router_id):
router = self.plugin._get_router(context.elevated(), router_id)