Changeset 14055 in genesis for tools/gformat.py
- Timestamp:
- Feb 20, 2018, 7:06:24 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r14054 r14055 237 237 datadump[key]['autogen_vlan_alias'] = '_alias' in key 238 238 datadump[key]['autogen_iface'] = '.'.join(key.split('_')[1:]) 239 datadump[key]['autogen_if_dhcp'] = datadump[key]['autogen_ifname']240 239 else: 241 240 datadump[key]['autogen_if_dhcp'] = datadump[key]['autogen_ifbase'] 242 241 datadump[key]['autogen_iface'] = '_'.join(key.split('_')[1:]) 243 datadump[key]['autogen_if_dhcp'] = datadump[key]['autogen_ifbase']244 242 245 243 except Exception as exc: … … 615 613 # Output the blocks in groups 616 614 for ifname,value in sorted(dhcp_out.iteritems()): 617 output += ("shared-network %s{\n" % ifname) + indent(''.join(value), 2).rstrip() + '\n}\n\n'615 output += ("shared-network \"%s\" {\n" % ifname) + indent(''.join(value), 2).rstrip() + '\n}\n\n' 618 616 return output 619 617
Note:
See TracChangeset
for help on using the changeset viewer.