pvl/hosts/dhcp.py
changeset 700 88b0d3df1ad7
parent 698 656178fb8607
child 708 fd6f0f044f42
--- a/pvl/hosts/dhcp.py	Mon Mar 02 19:58:12 2015 +0200
+++ b/pvl/hosts/dhcp.py	Mon Mar 02 19:58:35 2015 +0200
@@ -7,10 +7,10 @@
     """
     
     # hardware-type prefixed hardware-address
-    hardware = pvl.dhcp.config.Field('1:' + ethernet)
+    hardware = '1:' + ethernet
 
     return pvl.dhcp.config.Block(None, [
-        ('subclass', subclass, hardware),
+        ('subclass', pvl.dhcp.config.String(subclass), pvl.dhcp.config.Field(hardware)),
     ])
 
 class HostDHCPError(pvl.hosts.host.HostError):