Skip to content

Commit

Permalink
swss test changes for Virtual chassis
Browse files Browse the repository at this point in the history
sonic-net/sonic-buildimage#4709 is a PR for create/delete a virtual chassis.
Similar to create_vnet.sh, virtual_chassis.py is used to create the virtual chassis test
environment.
The changes here are to
1. Add a test_virtual_chassis.py to verify the virtual chassis
2. support virtual chassis topology in conftest.py to run the test_virtual_chassis.py.
   Notable changes in conftest.py are
   * Unlike create_vnet, virtual_chassis does not use a sw container.
   * New DockerVirtualChassisTopology class to setup the connections when the
   vitual chassis containers restart.
  • Loading branch information
saravanansv committed Jul 8, 2020
1 parent c5ba1eb commit 2fddadc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ def vct_connect(self):
for intf in intfs:
self.ctn.exec_run( "ip link set dev " + intf + " up" )
if "inband_address" in out:
iaddr = out[ "inband_address" ]
ifpair = out[ "inband_intf_pair" ]
ifname = out[ "inband_intf" ]
self.vct.connect( ifname, ifpair, pid )
Expand Down

0 comments on commit 2fddadc

Please sign in to comment.