Test: Adding dhcprelay tests.
Added isc-dhcp-server for cord-test container builds.
If cord-test container already exists, refresh using:
cord-test.py build test
Change-Id: I1aaff75612b7551fc9fd145fe2483ab72b5c3128
diff --git a/src/test/utils/OnosFlowCtrl.py b/src/test/utils/OnosFlowCtrl.py
index 2810817..f1b72cf 100644
--- a/src/test/utils/OnosFlowCtrl.py
+++ b/src/test/utils/OnosFlowCtrl.py
@@ -27,7 +27,11 @@
info = fcntl.ioctl(s.fileno(), 0x8927, struct.pack('256s', iface[:15]))
except:
info = ['0'] * 24
- return '0'*pad + ''.join(['%02x' %ord(char) for char in info[18:24]])
+ s.close()
+ sep = ''
+ if pad == 0:
+ sep = ':'
+ return '0'*pad + sep.join(['%02x' %ord(char) for char in info[18:24]])
class OnosFlowCtrl: