pvl/hosts/dhcp.py
changeset 733 45bedeba92e5
parent 731 5e2c1b78047d
child 739 5149c39f3dfc
--- a/pvl/hosts/dhcp.py	Sat Mar 07 16:31:11 2015 +0200
+++ b/pvl/hosts/dhcp.py	Mon Mar 09 18:00:18 2015 +0200
@@ -24,8 +24,8 @@
     yield 'option', 'host-name', host.name
     yield 'hardware', 'ethernet', pvl.dhcp.config.Field(ethernet)
 
-    if host.ip:
-        yield 'fixed-address', pvl.dhcp.config.Field(str(host.ip))
+    if host.ip4:
+        yield 'fixed-address', pvl.dhcp.config.Field(str(host.ip4))
       
     for bootopt in ('next-server', 'filename'):
         if bootopt in host.boot: