Changeset 14054 in genesis
- Timestamp:
- Feb 20, 2018, 7:00:50 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r14053 r14054 210 210 datadump[key]['autogen_ifbase'] = key.split('_')[1] 211 211 datadump[key]['autogen_vlan'] = False 212 datadump[key]['autogen_vlan_alias'] = False 212 213 213 214 datadump[key]['autogen_bridge_member'] = datadump[key].has_key('parent') … … 232 233 datadump[key]['autogen_ifname'] = '_'.join(key.split('_')[1:]) 233 234 if len(key.split('_')) > 2 and key.split('_')[2].isdigit(): 235 datadump[key]['autogen_if_dhcp'] = '.'.join(key.split('_')[1:3]) 234 236 datadump[key]['autogen_vlan'] = key.split('_')[2] 237 datadump[key]['autogen_vlan_alias'] = '_alias' in key 235 238 datadump[key]['autogen_iface'] = '.'.join(key.split('_')[1:]) 236 239 datadump[key]['autogen_if_dhcp'] = datadump[key]['autogen_ifname'] 237 240 else: 241 datadump[key]['autogen_if_dhcp'] = datadump[key]['autogen_ifbase'] 238 242 datadump[key]['autogen_iface'] = '_'.join(key.split('_')[1:]) 239 243 datadump[key]['autogen_if_dhcp'] = datadump[key]['autogen_ifbase'] 240 print key,datadump[key]['autogen_iface'], datadump[key]['autogen_ifname'], datadump[key]['autogen_if_dhcp']241 244 242 245 except Exception as exc:
Note:
See TracChangeset
for help on using the changeset viewer.