Skip to content

Commit

Permalink
[DM]: if dataplane ip is not conifgured, use bgp router ip for tunneling
Browse files Browse the repository at this point in the history
when dataplane ip is not configured explicitly, use bgp router's ip and configure dynamic tunnels

Change-Id: I81dd70162b90751b0d35d92ce0f81ea37161ba0b
Closes-Bug: #1494401
  • Loading branch information
sbalineni committed Jul 12, 2016
1 parent d31861f commit 123d060
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 123d060

Please sign in to comment.