@@ -244,8 +244,8 @@ def test_PortSyncdWarmRestart(self, dvs, testlog):
244
244
245
245
dvs .runcmd ("config warm_restart enable swss" )
246
246
247
- dvs .runcmd ("ifconfig Ethernet16 up " )
248
- dvs .runcmd ("ifconfig Ethernet20 up " )
247
+ dvs .runcmd ("config interface startup Ethernet16 " )
248
+ dvs .runcmd ("config interface startup Ethernet20 " )
249
249
250
250
time .sleep (1 )
251
251
@@ -256,8 +256,8 @@ def test_PortSyncdWarmRestart(self, dvs, testlog):
256
256
intf_tbl .set ("Ethernet20|11.0.0.9/29" , fvs )
257
257
intf_tbl .set ("Ethernet16" , fvs )
258
258
intf_tbl .set ("Ethernet20" , fvs )
259
- dvs .runcmd ("ifconfig Ethernet16 up " )
260
- dvs .runcmd ("ifconfig Ethernet20 up " )
259
+ dvs .runcmd ("config interface startup Ethernet16 " )
260
+ dvs .runcmd ("config interface startup Ethernet20 " )
261
261
262
262
dvs .servers [4 ].runcmd ("ip link set down dev eth0" ) == 0
263
263
dvs .servers [4 ].runcmd ("ip link set up dev eth0" ) == 0
@@ -315,7 +315,7 @@ def test_PortSyncdWarmRestart(self, dvs, testlog):
315
315
316
316
check_port_oper_status (appl_db , "Ethernet16" , "up" )
317
317
check_port_oper_status (appl_db , "Ethernet20" , "up" )
318
- check_port_oper_status (appl_db , "Ethernet24" , "up " )
318
+ check_port_oper_status (appl_db , "Ethernet24" , "down " )
319
319
320
320
321
321
swss_app_check_RestoreCount_single (state_db , restore_count , "portsyncd" )
@@ -336,8 +336,8 @@ def test_VlanMgrdWarmRestart(self, dvs, testlog):
336
336
dvs .runcmd ("ifconfig Ethernet16 0" )
337
337
dvs .runcmd ("ifconfig Ethernet20 0" )
338
338
339
- dvs .runcmd ("ifconfig Ethernet16 up " )
340
- dvs .runcmd ("ifconfig Ethernet20 up " )
339
+ dvs .runcmd ("config interface startup Ethernet16 " )
340
+ dvs .runcmd ("config interface startup Ethernet20 " )
341
341
342
342
time .sleep (1 )
343
343
@@ -384,8 +384,8 @@ def test_VlanMgrdWarmRestart(self, dvs, testlog):
384
384
intf_tbl .set ("Vlan20|11.0.0.9/29" , fvs )
385
385
intf_tbl .set ("Vlan16" , fvs )
386
386
intf_tbl .set ("Vlan20" , fvs )
387
- dvs .runcmd ("ifconfig Vlan16 up " )
388
- dvs .runcmd ("ifconfig Vlan20 up " )
387
+ dvs .runcmd ("config interface startup Vlan16 " )
388
+ dvs .runcmd ("config interface startup Vlan20 " )
389
389
390
390
dvs .servers [4 ].runcmd ("ifconfig eth0 11.0.0.2/29" )
391
391
dvs .servers [4 ].runcmd ("ip route add default via 11.0.0.1" )
@@ -478,8 +478,8 @@ def test_swss_neighbor_syncup(self, dvs, testlog):
478
478
intf_tbl .set ("{}" .format (intfs [1 ]), fvs )
479
479
intf_tbl .set ("{}" .format (intfs [0 ]), fvs )
480
480
intf_tbl .set ("{}" .format (intfs [1 ]), fvs )
481
- dvs .runcmd ("ifconfig {} up " .format (intfs [0 ]))
482
- dvs .runcmd ("ifconfig {} up " .format (intfs [1 ]))
481
+ dvs .runcmd ("config interface startup {} " .format (intfs [0 ]))
482
+ dvs .runcmd ("config interface startup {} " .format (intfs [1 ]))
483
483
484
484
ips = ["24.0.0.2" , "24.0.0.3" , "28.0.0.2" , "28.0.0.3" ]
485
485
v6ips = ["2400::2" , "2400::3" , "2800::2" , "2800::3" ]
@@ -831,8 +831,8 @@ def test_OrchagentWarmRestartReadyCheck(self, dvs, testlog):
831
831
intf_tbl .set ("Ethernet4|10.0.0.2/31" , fvs )
832
832
intf_tbl .set ("Ethernet0" , fvs )
833
833
intf_tbl .set ("Ethernet4" , fvs )
834
- dvs .runcmd ("ifconfig Ethernet0 up " )
835
- dvs .runcmd ("ifconfig Ethernet4 up " )
834
+ dvs .runcmd ("config interface startup Ethernet0 " )
835
+ dvs .runcmd ("config interface startup Ethernet4 " )
836
836
837
837
dvs .servers [0 ].runcmd ("ifconfig eth0 10.0.0.1/31" )
838
838
dvs .servers [0 ].runcmd ("ip route add default via 10.0.0.0" )
@@ -904,9 +904,9 @@ def test_swss_port_state_syncup(self, dvs, testlog):
904
904
intf_tbl .set ("Ethernet0" , fvs )
905
905
intf_tbl .set ("Ethernet4" , fvs )
906
906
intf_tbl .set ("Ethernet8" , fvs )
907
- dvs .runcmd ("ifconfig Ethernet0 up " )
908
- dvs .runcmd ("ifconfig Ethernet4 up " )
909
- dvs .runcmd ("ifconfig Ethernet8 up " )
907
+ dvs .runcmd ("config interface startup Ethernet0 " )
908
+ dvs .runcmd ("config interface startup Ethernet4 " )
909
+ dvs .runcmd ("config interface startup Ethernet8 " )
910
910
911
911
dvs .runcmd ("arp -s 10.0.0.1 00:00:00:00:00:01" )
912
912
dvs .runcmd ("arp -s 10.0.0.3 00:00:00:00:00:02" )
@@ -1075,9 +1075,9 @@ def test_routing_WarmRestart(self, dvs, testlog):
1075
1075
intf_tbl .set ("{}" .format (intfs [1 ]), fvs )
1076
1076
intf_tbl .set ("{}" .format (intfs [2 ]), fvs )
1077
1077
intf_tbl .set ("{}" .format (intfs [2 ]), fvs )
1078
- dvs .runcmd ("ip link set {} up " .format (intfs [0 ]))
1079
- dvs .runcmd ("ip link set {} up " .format (intfs [1 ]))
1080
- dvs .runcmd ("ip link set {} up " .format (intfs [2 ]))
1078
+ dvs .runcmd ("config interface startup {}" .format (intfs [0 ]))
1079
+ dvs .runcmd ("config interface startup {}" .format (intfs [1 ]))
1080
+ dvs .runcmd ("config interface startup {}" .format (intfs [2 ]))
1081
1081
1082
1082
time .sleep (1 )
1083
1083
@@ -1835,7 +1835,7 @@ def test_system_warmreboot_neighbor_syncup(self, dvs, testlog):
1835
1835
intf_tbl .set ("Ethernet{}|{}00::1/64" .format (i * 4 , i * 4 ), fvs )
1836
1836
intf_tbl .set ("Ethernet{}" .format (i * 4 , i * 4 ), fvs )
1837
1837
intf_tbl .set ("Ethernet{}" .format (i * 4 , i * 4 ), fvs )
1838
- dvs .runcmd ("ip link set Ethernet{} up " .format (i * 4 , i * 4 ))
1838
+ dvs .runcmd ("config interface startup Ethernet{}" .format (i * 4 , i * 4 ))
1839
1839
dvs .servers [i ].runcmd ("ip link set up dev eth0" )
1840
1840
dvs .servers [i ].runcmd ("ip addr flush dev eth0" )
1841
1841
#result = dvs.servers[i].runcmd_output("ifconfig eth0 | grep HWaddr | awk '{print $NF}'")
@@ -2082,8 +2082,8 @@ def test_VrfMgrdWarmRestart(self, dvs, testlog):
2082
2082
dvs .runcmd ("config warm_restart enable swss" )
2083
2083
2084
2084
# bring up interface
2085
- dvs .runcmd ("ifconfig Ethernet0 up " )
2086
- dvs .runcmd ("ifconfig Ethernet4 up " )
2085
+ dvs .runcmd ("config interface startup Ethernet0 " )
2086
+ dvs .runcmd ("config interface startup Ethernet4 " )
2087
2087
2088
2088
# create vrf
2089
2089
create_entry_tbl (conf_db , "VRF" , "Vrf_1" , [('empty' , 'empty' )])
0 commit comments