Skip to content
Snippets Groups Projects
Commit dd85fcaa authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Version 2012-03-27 15:46

M  src/hostinfo/dhcpd.py
parent 8ce6ddb4
No related branches found
No related tags found
No related merge requests found
...@@ -210,6 +210,7 @@ def emit_subnet(tree, n, dhcphost, kickstart, next_server=None): ...@@ -210,6 +210,7 @@ def emit_subnet(tree, n, dhcphost, kickstart, next_server=None):
ether = i._parent.ethernet[0] ether = i._parent.ethernet[0]
ip = i.address[0] ip = i.address[0]
if ether: if ether:
assert ether.lower() == ether, "%s is not lower-case" % ether
result += " host %s.%s {\n"% (i.name[0:], n.domain[0]) result += " host %s.%s {\n"% (i.name[0:], n.domain[0])
result += " hardware ethernet %s;\n" % ether result += " hardware ethernet %s;\n" % ether
result += " fixed-address %s;\n" % ip result += " fixed-address %s;\n" % ip
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment