Changeset 10318 in genesis


Ignore:
Timestamp:
Apr 1, 2012, 8:05:31 PM (13 years ago)
Author:
rick
Message:

Write DHCLIENT config for dhclient interfaces (mostly proxies).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10310 r10318  
    401401captive_portal_whitelist=""
    402402captive_portal_interfaces="{{ autogen_dhcp_interfaces }}"
    403 
     403\n
    404404""").render(datadump)
    405405
     
    422422    ifacedump = datadump[iface_key]
    423423    ifname = ifacedump['autogen_ifname']
     424
     425    # Write DHCLIENT entry
     426    if ifacedump.has_key('dhcpclient') and ifacedump['dhcpclient']:
     427      output += "ifconfig_%s='SYNCDHCP'" % ifacedump['autogen_ifname']
    424428
    425429    # Add interface IP to list
Note: See TracChangeset for help on using the changeset viewer.