Delete dhcp relay ports on cord tester cleanup
Change-Id: If16e900853fc6abcc09e0f63d3e73f404dce372e
diff --git a/src/test/setup/cord-test.py b/src/test/setup/cord-test.py
index 1db4c2f..ca70ba5 100755
--- a/src/test/setup/cord-test.py
+++ b/src/test/setup/cord-test.py
@@ -184,10 +184,8 @@
intf_type = 2
cmds = ()
res = 0
- for port in port_map['ports']:
+ for port in port_map['ports'] + port_map['relay_ports']:
local_if = '{0}_{1}'.format(port, port_num+1)
- if wan and port_map[uplink] == port:
- continue
if intf_type == 0:
if start_vlan != 0:
cmds = ('ip link del {}.{}'.format(intf_host, start_vlan),)