Ifup vnet host for Ovsdb CI failure
Change-Id: Ibd6356217b5085995c0e804f3bed8cb75ce2469a
diff --git a/TestON/drivers/common/cli/ovsdbdriver.py b/TestON/drivers/common/cli/ovsdbdriver.py
index 4b78665..f3e0c7a 100644
--- a/TestON/drivers/common/cli/ovsdbdriver.py
+++ b/TestON/drivers/common/cli/ovsdbdriver.py
@@ -264,6 +264,8 @@
def createHostport(self, hostname="host1", hostport="host1-eth0", ovsport="port1", hostportmac="000000000001" ):
command = "sudo ip link add " + str(hostport) +" type veth peer name " + str(ovsport)
+ command += ";" + "sudo ip link set " + str(hostport) + " up"
+ command += ";" + "sudo ip link set " + str(ovsport) + " up"
command += ";" +" sudo ifconfig " + str(hostport) + " hw ether " + str(hostportmac)
command += ";" +" sudo ip link set " + str(hostport) + " netns " + str(hostname)
try: