diff options
Diffstat (limited to 'neutron/db/l3_dvr_db.py')
-rw-r--r-- | neutron/db/l3_dvr_db.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/neutron/db/l3_dvr_db.py b/neutron/db/l3_dvr_db.py index f4a62c073c..2df7df3768 100644 --- a/neutron/db/l3_dvr_db.py +++ b/neutron/db/l3_dvr_db.py @@ -302,6 +302,18 @@ class L3_NAT_with_dvr_db_mixin(l3_db.L3_NAT_db_mixin, subnet['id'], [subnet['id']]) self.notify_router_interface_action( context, router_interface_info, 'add') + if router.gw_port: + gw_network_id = router.gw_port.network_id + gw_ips = [x['ip_address'] for x in router.gw_port.fixed_ips] + registry.notify(resources.ROUTER_INTERFACE, + events.AFTER_CREATE, + self, + network_id=gw_network_id, + gateway_ips=gw_ips, + cidrs=[x['cidr'] for x in subnets], + port_id=port['id'], + router_id=router_id, + interface_info=interface_info) return router_interface_info def _port_has_ipv6_address(self, port, csnat_port_check=True): |