pvl/hosts/dhcp.py
changeset 697 3c3ac207ce3f
parent 689 c258e3ff6d32
child 698 656178fb8607
equal deleted inserted replaced
696:55796948021e 697:3c3ac207ce3f
     8     """
     8     """
     9         Yield specific dhcp.conf host { ... } items.
     9         Yield specific dhcp.conf host { ... } items.
    10     """
    10     """
    11 
    11 
    12     yield 'option', 'host-name', host.name
    12     yield 'option', 'host-name', host.name
    13     yield 'hardware', 'ethernet', ethernet
    13     yield 'hardware', 'ethernet', pvl.dhcp.config.Field(ethernet)
    14 
    14 
    15     if host.ip:
    15     if host.ip:
    16         yield 'fixed-address', str(host.ip)
    16         yield 'fixed-address', pvl.dhcp.config.Field(str(host.ip))
    17       
    17       
    18     for bootopt in ('next-server', 'filename'):
    18     for bootopt in ('next-server', 'filename'):
    19         if bootopt in host.boot:
    19         if bootopt in host.boot:
    20             yield bootopt, host.boot[bootopt]
    20             yield bootopt, host.boot[bootopt]
    21 
    21