Commit 0e9bc27f authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis
Browse files

Merge branch 'develop'

parents 98b15f59 fac9f928
...@@ -240,8 +240,7 @@ class Client(object): ...@@ -240,8 +240,7 @@ class Client(object):
self.open_socket() self.open_socket()
def is_valid(self): def is_valid(self):
return self.mac is not None and self.ip is not None\ return self.mac is not None and self.hostname is not None
and self.hostname is not None
def open_socket(self): def open_socket(self):
...@@ -606,6 +605,10 @@ class VMNetProxy(object): # pylint: disable=R0902 ...@@ -606,6 +605,10 @@ class VMNetProxy(object): # pylint: disable=R0902
mac, indev) mac, indev)
return return
if not binding.ip:" - No IP found in binding file.")
return" - Generating DHCP response:"" - Generating DHCP response:"
" host %s, mac %s, tap %s, indev %s", " host %s, mac %s, tap %s, indev %s",
binding.hostname, mac, binding.tap, indev) 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