Changeset 9938 in genesis for tools/gformat.py


Ignore:
Timestamp:
Feb 7, 2012, 11:24:10 AM (13 years ago)
Author:
rick
Message:

I need raw entries in wleiden.net for a special project.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r9808 r9938  
    641641  ## apkerk1.CNodeVosko=172.17.176.8 ;this as well
    642642  dns = yaml.load(open(os.path.join(NODE_DIR,'../dns/staticDNS.yaml'),'r'))
     643
     644  # Hack to allow special entries, for development
     645  wleiden_raw = dns['raw']
     646  del dns['raw']
     647
    643648  for comment, block in dns.iteritems():
    644649    for k,v in block.iteritems():
     
    672677  for source,dest in wleiden_cname.iteritems():
    673678    f.write("%s.wleiden.net. IN CNAME %s.wleiden.net.\n" % (source.lower(), dest.lower()))
     679  for source, dest in wleiden_raw.iteritems():
     680    f.write("%s.wleiden.net. %s\n" % (source, dest))
    674681  f.close()
    675682
Note: See TracChangeset for help on using the changeset viewer.