microsoft / lis-test

Contains test infrastructure for testing Linux virtual machines on Windows Azure and Hyper-V.
32 stars 72 forks source link

Update utils.sh for RemovevlanConfig by removing service network restart #1075

Closed lixuemin2016 closed 6 years ago

lixuemin2016 commented 6 years ago

When test on the network vlanTrunking case, execute line #1225 of NET_VLAN_TRUNKING.ps1, it will call RemoveVlanInterfaceConfig, and it will restart network. Sometimes, after restart vm network, "plink.exe root@ip address" does not work in the powershell script, which induces the test case abort. (even can connect by plink in the other session, e.g. try on the other windows powershell)

In the utils.sh function RemoveVlanConfig, it already has #1124 line ip link set $interface.$vlanID down, so could remove "service network restart" line. If remove the service network restart line in vm, it does not have impact to the eth0 adapter, the plink connection will keep connected.

Thank you so much.