equal
deleted
inserted
replaced
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 |