Skip to content

Commit

Permalink
Merge "[DM]: if dataplane ip is not conifgured, use bgp router ip for…
Browse files Browse the repository at this point in the history
… tunneling" into R3.0
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jul 13, 2016
2 parents 6d9e29c + 123d060 commit ebc15fa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/config/device-manager/device_manager/db.py
Expand Up @@ -569,10 +569,12 @@ def push_config(self):
self.config_manager.set_bgp_config(bgp_router.params)
self.config_manager.set_global_routing_options(bgp_router.params)
bgp_router_ips = bgp_router.get_all_bgp_router_ips()
if (self.dataplane_ip is not None and
self.is_valid_ip(self.dataplane_ip)):
tunnel_ip = self.dataplane_ip
if not tunnel_ip and bgp_router.params:
tunnel_ip = bgp_router.params.get('address')
if (tunnel_ip and self.is_valid_ip(tunnel_ip)):
self.config_manager.add_dynamic_tunnels(
self.dataplane_ip,
tunnel_ip,
GlobalSystemConfigDM.ip_fabric_subnets,
bgp_router_ips)

Expand Down

0 comments on commit ebc15fa

Please sign in to comment.