Skip to content

Commit

Permalink
Fix test_VlanMgrdWarmRestart
Browse files Browse the repository at this point in the history
Signed-off-by: Marian Pritsak <marianp@mellanox.com>
  • Loading branch information
marian-pritsak committed Dec 5, 2018
1 parent 63fceb1 commit 2708d6d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_warm_reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,13 @@ def test_VlanMgrdWarmRestart(dvs, testlog):

time.sleep(1)

dvs.runcmd("ifconfig Vlan16 11.0.0.1/29 up")
dvs.runcmd("ifconfig Vlan20 11.0.0.9/29 up")
config_db = swsscommon.DBConnector(swsscommon.CONFIG_DB, dvs.redis_sock, 0)
intf_tbl = swsscommon.Table(config_db, "INTERFACE")
fvs = swsscommon.FieldValuePairs([("NULL","NULL")])
intf_tbl.set("Vlan16|11.0.0.1/29", fvs)
intf_tbl.set("Vlan20|11.0.0.9/29", fvs)
dvs.runcmd("ifconfig Vlan16 up")
dvs.runcmd("ifconfig Vlan20 up")

dvs.servers[4].runcmd("ifconfig eth0 11.0.0.2/29")
dvs.servers[4].runcmd("ip route add default via 11.0.0.1")
Expand Down

0 comments on commit 2708d6d

Please sign in to comment.