Changeset 10821 in genesis


Ignore:
Timestamp:
May 13, 2012, 11:59:36 AM (13 years ago)
Author:
rick
Message:

No dhcp defined = No DHCP. Having the explicit dhcp : False configured seems sometimes a bit
to much.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10819 r10821  
    129129      datadump[key]['autogen_ifname'] = datadump[key]['interface'].split(':')[0]
    130130
    131   dhcp_interfaces = [datadump[key]['autogen_ifname'] for key in datadump['autogen_iface_keys'] if datadump[key]['dhcp']]
     131  dhcp_interfaces = [datadump[key]['autogen_ifname'] for key in datadump['autogen_iface_keys'] if (datadump[key].has_key('dhcp') and datadump[key]['dhcp'])]
    132132  datadump['autogen_dhcp_interfaces'] = dhcp_interfaces
    133133  datadump['autogen_item'] = item
Note: See TracChangeset for help on using the changeset viewer.