Changeset 10863 in genesis
- Timestamp:
- May 15, 2012, 11:25:37 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tools/gformat.py ¶
r10860 r10863 723 723 output += "ifconfig_%s='SYNCDHCP'\n\n" % (iface) 724 724 else: 725 # Make sure the external address is always first as this is needed in the 726 # firewall setup 727 addrs = sorted(addrs,key=lambda x: x[0].split('.')[0], cmp=lambda x,y: cmp(1 if x == '172' else 0, 1 if y == '172' else 0)) 725 728 output += "ipv4_addrs_%s='%s'\n\n" % (iface, " ".join([x[0] for x in addrs])) 726 729
Note:
See TracChangeset
for help on using the changeset viewer.