Changeset 13420 in genesis for tools/gformat.py


Ignore:
Timestamp:
Oct 3, 2015, 9:34:03 PM (9 years ago)
Author:
rick
Message:

rc.conf requires parent interfaces without specific interfaces to be explicitly marked up.

Personally I would consider this a bug, since vlans_ifX should clearly mark an
interface as active.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r13419 r13420  
    862862  for iface, vlans in vlan_list.items():
    863863    output += 'vlans_%s="%s"\n' % (iface, ' '.join(vlans))
     864
     865  # VLAN Parent interfaces not containing a configuration should be marked active explcitly.
     866  for iface in vlan_list.keys():
     867    if not iface in addrs_list.keys():
     868      output += "ifconfig_%s='up'\n" % iface
    864869
    865870  # Details like SSID
Note: See TracChangeset for help on using the changeset viewer.