Skip to content

Commit

Permalink
[minigraph.py]: Check entire TUNNEL_TABLE in unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Lawrence Lee <[email protected]>
  • Loading branch information
theasianpianist committed Oct 29, 2020
1 parent 366abcb commit 64eb9d4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/sonic-config-engine/tests/test_minigraph_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,16 @@ def test_mux_cable_parsing(self):

def test_minigraph_tunnel_table(self):
result = minigraph.parse_xml(self.sample_graph, self.port_config)
argument = '-m "' + self.sample_graph + '" -p "' + self.port_config + '" -v "TUNNEL_TABLE[\'MUX_TUNNEL_0\']"'
argument = '-m "' + self.sample_graph + '" -p "' + self.port_config + '" -v "TUNNEL_TABLE"'
expected_tunnel = {
"tunnel_type": "IPINIP",
"dst_ip": "26.1.1.10",
"dscp_mode": "uniform",
"encap_ecn_mode": "standard",
"decap_ecn_mode": "copy_from_outer",
"ttl_mode": "pipe"
"MUX_TUNNEL_0": {
"tunnel_type": "IPINIP",
"dst_ip": "26.1.1.10",
"dscp_mode": "uniform",
"encap_ecn_mode": "standard",
"decap_ecn_mode": "copy_from_outer",
"ttl_mode": "pipe"
}
}

output = self.run_script(argument)
Expand Down

0 comments on commit 64eb9d4

Please sign in to comment.