Changeset 13647 in genesis


Ignore:
Timestamp:
Nov 14, 2016, 4:20:20 PM (8 years ago)
Author:
rick
Message:

Deal with interfaces without IP numbers (vlan masters)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r13645 r13647  
    14341434    for iface_key in get_interface_keys(datadump):
    14351435      iface_name = iface_key.replace('_','-')
    1436       (ip, cidr) = datadump[iface_key]['ip'].split('/')
     1436      if 'ip' in datadump[iface_key]:
     1437        (ip, cidr) = datadump[iface_key]['ip'].split('/')
    14371438      try:
    14381439        (dhcp_start, dhcp_stop) = datadump[iface_key]['dhcp'].split('-')
Note: See TracChangeset for help on using the changeset viewer.