From e73e5cea1a4c6ade4449d6cd6fd22c758305c6aa Mon Sep 17 00:00:00 2001 From: Lawrence Lee Date: Wed, 18 Nov 2020 20:10:12 +0000 Subject: [PATCH] [minigraph.py]: Restore original VLAN_INTERFACE.keys() test case Signed-off-by: Lawrence Lee --- src/sonic-config-engine/tests/test_minigraph_case.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sonic-config-engine/tests/test_minigraph_case.py b/src/sonic-config-engine/tests/test_minigraph_case.py index ead80fdde173..d24ec501bba6 100644 --- a/src/sonic-config-engine/tests/test_minigraph_case.py +++ b/src/sonic-config-engine/tests/test_minigraph_case.py @@ -96,6 +96,11 @@ def test_minigraph_vlan_members(self): output = self.run_script(argument) self.assertEqual(output.strip(), "{('Vlan1000', 'Ethernet8'): {'tagging_mode': 'untagged'}}") + def test_minigraph_vlan_interfaces_keys(self): + argument = '-m "' + self.sample_graph + '" -p "' + self.port_config + '" -v "VLAN_INTERFACE.keys()|list"' + output = self.run_script(argument) + self.assertEqual(output.strip(), "[('Vlan1000', '192.168.0.1/27'), 'Vlan1000']") + def test_minigraph_vlan_interfaces(self): argument = '-m "' + self.sample_graph + '" -p "' + self.port_config + '" -v "VLAN_INTERFACE"' output = self.run_script(argument)