Changeset 10863 in genesis


Ignore:
Timestamp:
May 15, 2012, 11:25:37 AM (13 years ago)
Author:
rick
Message:

Related-To: nodefactory:ticket:177

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tools/gformat.py

    r10860 r10863  
    723723      output += "ifconfig_%s='SYNCDHCP'\n\n" % (iface)
    724724    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))
    725728      output += "ipv4_addrs_%s='%s'\n\n" % (iface, " ".join([x[0] for x in addrs]))
    726729
Note: See TracChangeset for help on using the changeset viewer.