- Timestamp:
- May 27, 2017, 1:23:11 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r13863 r13883 583 583 """ % { 'ifname' : ifname, 'mac' : mac, 'prefix': dhcp_part, 'fixed' : fixed })) 584 584 fixed += 1 585 586 if 'dhcp_fixed' in datadump[iface_key]: 587 for (mac,addr,host) in datadump[iface_key]['dhcp_fixed']: 588 dhcp_out[groupif].append(textwrap.dedent("""\ 589 host fixed-%(host)s { 590 hardware ethernet %(mac)s; 591 fixed-address %(addr)s; 592 } 593 """ % { 'host' : host, 'mac' : mac, 'addr' : addr})) 594 585 595 586 596 dhcp_out[groupif].append(textwrap.dedent("""\
Note:
See TracChangeset
for help on using the changeset viewer.