Skip to content

Commit

Permalink
Merge pull request cobbler#1639 from davidkostal/dhcp-over-tagged-vlan
Browse files Browse the repository at this point in the history
Added support for fixed DHCP IPs when using vlan over bond.
  • Loading branch information
jmaas committed Apr 17, 2016
2 parents 03ea444 + 731696b commit 8e972ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cobbler/modules/manage_isc.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ def write_dhcp_file(self):
# exist
continue
ip = system.interfaces[interface["interface_master"]]["ip_address"]
if ip is None or ip == "":
for (nam2, int2) in system.interfaces.iteritems():
if (nam2.startswith(interface["interface_master"] + ".")
and int2["ip_address"] is not None
and int2["ip_address"] != ""):
ip = int2["ip_address"]
break

interface["ip_address"] = ip
host = system.interfaces[interface["interface_master"]]["dns_name"]
interface["if_gateway"] = system.interfaces[interface["interface_master"]]["if_gateway"]
Expand Down

0 comments on commit 8e972ca

Please sign in to comment.