Commit fac9f928 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis
Browse files

Allow binding files without IP entry

This is needed for NIC that obtain only IPv6.
Signed-off-by: default avatarDimitris Aragiorgis <>
parent 09f11926
......@@ -240,8 +240,7 @@ class Client(object):
def is_valid(self):
return self.mac is not None and self.ip is not None\
and self.hostname is not None
return self.mac is not None and self.hostname is not None
def open_socket(self):
......@@ -606,6 +605,10 @@ class VMNetProxy(object): # pylint: disable=R0902
mac, indev)
if not binding.ip:" - No IP found in binding file.")
return" - Generating DHCP response:"
" host %s, mac %s, tap %s, indev %s",
binding.hostname, mac, binding.tap, indev)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment