Skip to content

Commit

Permalink
[sonic-cfggen]: Fix a wrong attribute in VXLAN_TUNNEL (#3225)
Browse files Browse the repository at this point in the history
Change 'source_ip' to 'src_ip'
  • Loading branch information
baiwei0427 authored and stcheng committed Jul 27, 2019
1 parent 4585590 commit 2081c2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sonic-config-engine/minigraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def parse_spine_chassis_fe(results, vni, lo_intfs, phyport_intfs, pc_intfs, pc_m
break

results['VXLAN_TUNNEL'] = {chassis_vxlan_tunnel: {
'source_ip': lo_addr
'src_ip': lo_addr
}}

# Vnet information
Expand Down
2 changes: 1 addition & 1 deletion src/sonic-config-engine/tests/test_cfggen_t2_chassis_fe.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ def test_minigraph_t2_chassis_fe_vnet(self):
def test_minigraph_t2_chassis_fe_vxlan(self):
argument = '-m "' + self.sample_graph_t2_chassis_fe + '" -p "' + self.t2_chassis_fe_port_config + '" -v "VXLAN_TUNNEL"'
output = self.run_script(argument)
self.assertEqual(output.strip(), "{'TunnelInt': {'source_ip': '4.0.0.0'}}")
self.assertEqual(output.strip(), "{'TunnelInt': {'src_ip': '4.0.0.0'}}")

0 comments on commit 2081c2e

Please sign in to comment.