- Timestamp:
- Mar 18, 2016, 10:39:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r13565 r13568 523 523 524 524 if dhcp_type(datadump[iface_key]) != DHCP_SERVER: 525 dhcp_out[if ace_key].append("## %(autogen_ifname)s - %(comment)s\n" % datadump[iface_key])525 dhcp_out[ifname].append("## %(autogen_ifname)s - %(comment)s\n" % datadump[iface_key]) 526 526 else: 527 527 dhcp_out['bridge0'].append(" ## %(autogen_ifname)s - %(comment)s\n" % datadump[iface_key]) … … 533 533 534 534 if dhcp_type(datadump[iface_key]) != DHCP_SERVER: 535 dhcp_out[if ace_key].append(textwrap.dedent("""\535 dhcp_out[ifname].append(textwrap.dedent("""\ 536 536 subnet %(autogen_subnet)s netmask %(autogen_netmask)s { 537 537 ### not autoritive … … 569 569 if ifname == 'bridge0': 570 570 output += ("shared-network %s {\n" % ifname) + ''.join(value) + '}\n\n' 571 elif len(value) > 2: 572 output += ("shared-network %s {\n" % ifname) + indent(''.join(value), 2) + '\n}\n\n' 571 573 else: 572 574 output += ''.join(value) + "\n\n"
Note:
See TracChangeset
for help on using the changeset viewer.