Move back to ip link create
diff --git a/src/test/utils/CordContainer.py b/src/test/utils/CordContainer.py
index b636590..c04f219 100644
--- a/src/test/utils/CordContainer.py
+++ b/src/test/utils/CordContainer.py
@@ -138,7 +138,7 @@
ip = IPRoute()
br = ip.link_lookup(ifname=quagga_config['bridge'])
if len(br) == 0:
- ip.link('add', ifname=quagga_config['bridge'], kind='bridge')
+ ip.link_create(ifname=quagga_config['bridge'], kind='bridge')
br = ip.link_lookup(ifname=quagga_config['bridge'])
br = br[0]
ip.link('set', index=br, state='up')
@@ -147,7 +147,7 @@
if len(ifs) > 0:
ip.link_remove(ifs[0])
peer_ifname = '{0}-{1}'.format(pid, index)
- ip.link('add', ifname=ifname, kind='veth', peer=peer_ifname)
+ ip.link_create(ifname=ifname, kind='veth', peer=peer_ifname)
host = ip.link_lookup(ifname=ifname)[0]
ip.link('set', index=host, master=br)
ip.link('set', index=host, state='up')