Changeset 8622 in genesis
- Timestamp:
- Oct 31, 2010, 9:24:42 PM (14 years ago)
- Files:
-
- 1 added
- 1 deleted
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
dns/staticDNS.yaml
r8617 r8622 1 ; 2 ;Aliassen en short-cuts voor nodes 3 ; 4 Parelvissers=CNodeAJSoft 5 RV=CNodeRV 6 RijnVliet=CNodeRV 7 RijnenVliet=CNodeRV 8 kempers=CNodeLMKempers1 9 rustenborg=CNodeRustenborch 10 strkvrw=CNodeLMStruykVerwo1 11 roomburgh=CNodeRoomburgh1 1 Various: 2 Parelvissers : CNodeAJSoft 3 RV : CNodeRV 4 RijnVliet : CNodeRV 5 RijnenVliet : CNodeRV 6 kempers : CNodeLMKempers1 7 rustenborg : CNodeRustenborch 8 strkvrw : CNodeLMStruykVerwo1 9 roomburgh : CNodeRoomburgh1 12 10 13 apkerk1.CNodeVosko=172.17.176.8 14 apkerk2.CNodeVosko=172.17.176.9 11 vosko: 12 apkerk1.CNodeVosko : 172.17.176.8 13 apkerk2.CNodeVosko : 172.17.176.9 15 14 16 bbLijtweg1=CNodeLijtweg1 17 bbLijtweg2=CNodeLijtweg2 18 bbLijtweg3=CNodeLijtweg3 19 lijtweg=CNodeLijtweg1 15 lijtweg: 16 bbLijtweg1 : CNodeLijtweg1 17 bbLijtweg2 : CNodeLijtweg2 18 bbLijtweg3 : CNodeLijtweg3 19 lijtweg : CNodeLijtweg1 20 20 21 apkerk.CNodeCeTIM=172.17.143.9 22 hk=CNodeCeTIM1 23 hk1=CNodeCeTIM1 24 hk2=CNodeCeTIM2 25 hk3=CNodeCeTIM3 26 hlk=CNodeCeTIM1 27 hlk1=CNodeCeTIM1 28 hlk2=CNodeCeTIM2 29 hlk3=CNodeCeTIM3 30 cetim=CNodeCeTIM1 21 cetim: 22 apkerk.CNodeCeTIM : 172.17.143.9 23 hk : CNodeCeTIM1 24 hk1 : CNodeCeTIM1 25 hk2 : CNodeCeTIM2 26 hk3 : CNodeCeTIM3 27 hlk : CNodeCeTIM1 28 hlk1 : CNodeCeTIM1 29 hlk2 : CNodeCeTIM2 30 hlk3 : CNodeCeTIM3 31 cetim : CNodeCeTIM1 31 32 32 ;proxy servers 33 proxy=172.31.255.134 proxy.CNodeCeTIM=172.17.143.25435 proxy1=172.17.8.6836 proxy2=172.17.143.437 proxy3=172.20.128.9838 proxy4=172.16.2.25439 proxy5=172.19.168.6640 proxy40=172.20.136.1933 proxy servers: 34 proxy : 172.31.255.1 35 proxy.CNodeCeTIM : 172.17.143.254 36 proxy1 : 172.17.8.68 37 proxy2 : 172.17.143.4 38 proxy3 : 172.20.128.98 39 proxy4 : 172.16.2.254 40 proxy5 : 172.19.168.66 41 proxy40 : 172.20.136.19 41 42 42 43 43 ; 44 ; Diensten op het netwerk gehost op prive servers 45 ; 44 Diensten op het netwerk gehost op prive servers: 45 forum : 172.20.128.18 46 zeehos1.CNodeMeca : 172.26.0.8 47 zeehos1 : zeehos1.CNodeMeca 48 zeehos2.CNodeMeca : 172.26.0.9 49 zeehos2 : zeehos2.CNodeMeca 46 50 47 forum=172.20.128.18 48 zeehos1.CNodeMeca=172.26.0.8 49 zeehos1=zeehos1.CNodeMeca 50 zeehos2.CNodeMeca=172.26.0.9 51 zeehos2=zeehos2.CNodeMeca 51 dirkx: 52 boem.CNodeRund : 172.17.160.3 53 foem.CNodeRund : 172.17.160.2 54 gw.CNodeRund : 172.17.160.6 52 55 53 ;dirkx 54 boem.CNodeRund=172.17.160.3 55 foem.CNodeRund=172.17.160.2 56 gw.CNodeRund=172.17.160.6 56 lvp: 57 lvp : 172.17.136.2 58 audiobro : 172.19.136.2 57 59 58 ;lvp 59 lvp=172.17.136.2 ; lvp op verzoek Bestuur en systeembeheer van de LVP 60 audiobro=172.19.136.2 ; lvp op verzoek Bestuur en systeembeheer van de LVP 61 62 ;rudi/xlexit 63 rudi-gw.CNodeRudi=172.23.0.70 64 xlexit-gw.CNodeRudi=172.23.0.69 65 xlexit=xlexit-gw.CNodeRudi 66 xlexit2.CNodeRudi=172.23.0.66 60 rudi/xlexit: 61 rudi-gw.CNodeRudi : 172.23.0.70 62 xlexit-gw.CNodeRudi : 172.23.0.69 63 xlexit : xlexit-gw.CNodeRudi 64 xlexit2.CNodeRudi : 172.23.0.66 67 65 68 66 69 ;jasper 70 smc.CNodeJasper=172.18.8.6771 tango.CNodeJasper=172.18.8.6672 tango=tango.CNodeJasper67 jasper: 68 smc.CNodeJasper : 172.18.8.67 69 tango.CNodeJasper : 172.18.8.66 70 tango : tango.CNodeJasper 73 71 74 ;cope 75 server.CNodeCope=172.17.8.6776 vpn-cope=server.CNodeCope72 cope: 73 server.CNodeCope : 172.17.8.67 74 vpn-cope : server.CNodeCope 77 75 78 76 79 ;vpn servers 80 vpn.CNodeLvLn=172.17.144.6681 vpn.CNodeLvLz=172.17.40.6682 vpn.CNodeOBLc=172.17.152.6777 vpn servers: 78 vpn.CNodeLvLn : 172.17.144.66 79 vpn.CNodeLvLz : 172.17.40.66 80 vpn.CNodeOBLc : 172.17.152.67 83 81 84 ; 85 ;DHCP static addressen + vrijwilligers verwijzingen 86 ; 87 kovijn=172.17.8.5 82 DHCP static addressen + vrijwilligers verwijzingen: 83 kovijn : 172.17.8.5 84 85 Johan : Johan.CNodeGandalf 86 Johan.CNodeGandalf : 172.25.128.2 87 eddy : 172.16.2.114 88 hiephoi1.CNodeAJSoft : 172.20.136.7 89 hiephoi1 : hiephoi1.CNodeAJSoft 90 hiephoi2.CNodeAJSoft : 172.20.136.8 91 hiephoi2 : hiephoi2.CNodeAJSoft 92 hiephoi3.CNodeAJSoft : 172.20.136.9 93 hiephoi3 : hiephoi3.CNodeAJSoft 94 jeroen.CNodeVeldbies : 172.25.0.18 95 jeroen : jeroen.CNodeVeldbies 96 kok.CNodeCope : 172.17.8.6 97 kok : kok.CNodeCope 98 lodewijk : 172.17.136.9 99 marcel.CNodeROCl : 172.21.0.5 100 marcel : marcel.CNodeROCl 101 mostaza.CNodeROCl : 172.21.0.6 102 mostaza : mostaza.CNodeROCl 103 timbolino.CNodeAZC : 172.19.144.5 104 timbolino : timbolino.CNodeAZC 105 trracer.CNodeJorg : 172.20.0.67 106 trracer : trracer.CNodeJorg 107 richard : 172.19.137.70 108 sunny : 172.16.4.46 109 factory : 172.19.128.69 88 110 89 Johan=Johan.CNodeGandalf 90 Johan.CNodeGandalf=172.25.128.2 91 eddy=172.16.2.114 92 hiephoi1.CNodeAJSoft=172.20.136.7 93 hiephoi1=hiephoi1.CNodeAJSoft 94 hiephoi2.CNodeAJSoft=172.20.136.8 95 hiephoi2=hiephoi2.CNodeAJSoft 96 hiephoi3.CNodeAJSoft=172.20.136.9 97 hiephoi3=hiephoi3.CNodeAJSoft 98 jeroen.CNodeVeldbies=172.25.0.18 99 jeroen=jeroen.CNodeVeldbies 100 kok.CNodeCope=172.17.8.6 101 kok=kok.CNodeCope 102 lodewijk=172.17.136.9 103 marcel.CNodeROCl=172.21.0.5 104 marcel=marcel.CNodeROCl 105 mostaza.CNodeROCl=172.21.0.6 106 mostaza=mostaza.CNodeROCl 107 timbolino.CNodeAZC=172.19.144.5 108 timbolino=timbolino.CNodeAZC 109 trracer.CNodeJorg=172.20.0.67 110 trracer=trracer.CNodeJorg 111 richard=172.19.137.70 112 sunny=172.16.4.46 113 factory=172.19.128.69 114 ; 115 ;Overige 116 ; 117 aa-design=aa-design.CNodeCope 118 aa-design.CNodeCope=172.17.8.7 119 binnen.CNodeBurcht=172.17.184.129 120 dorsthorst.CNodeVeldbies=172.25.0.66 121 localhost=127.0.0.1 122 www.CNodeOBLc=172.17.152.66 123 bibliotheek=www.CNodeOBLc 124 bieb=www.CNodeOBLc 125 www.jvc=172.18.32.5 111 Overige: 112 aa-design : aa-design.CNodeCope 113 aa-design.CNodeCope : 172.17.8.7 114 binnen.CNodeBurcht : 172.17.184.129 115 dorsthorst.CNodeVeldbies : 172.25.0.66 116 localhost : 127.0.0.1 117 www.CNodeOBLc : 172.17.152.66 118 bibliotheek : www.CNodeOBLc 119 bieb : www.CNodeOBLc 120 www.jvc : 172.18.32.5 126 121 127 ;Timelord pool 128 0.timelord=172.19.137.66129 0.timelord=172.27.129.66130 1.timelord=172.17.8.68131 1.timelord=172.19.168.66132 2.timelord=172.17.143.4133 3.timelord=172.20.128.98122 Timelord pool: 123 0.timelord : 172.19.137.66 124 0.timelord : 172.27.129.66 125 1.timelord : 172.17.8.68 126 1.timelord : 172.19.168.66 127 2.timelord : 172.17.143.4 128 3.timelord : 172.20.128.98 -
tools/gformat.py
r8615 r8622 4 4 # Wireless Leiden configuration generator, based on yaml files' 5 5 # Rick van der Zwet <info@rickvanderzwet.nl> 6 7 # Hack to make the script directory is also threated as a module search path. 8 import sys 9 import os 10 sys.path.append(os.path.dirname(__file__)) 11 6 12 import cgi 7 13 import cgitb 8 14 import copy 9 15 import glob 10 import os11 16 import socket 12 17 import string 13 18 import subprocess 14 import sys15 19 import time 16 import make_map20 import rdnap 17 21 from pprint import pprint 18 22 try: … … 31 35 32 36 33 NODE_DIR = os. path.dirname(os.path.realpath(__file__))37 NODE_DIR = os.getcwd() 34 38 __version__ = '$Id$' 35 39 … … 608 612 ## roomburgh=CNodeRoomburgh1 609 613 ## apkerk1.CNodeVosko=172.17.176.8 ;this as well 610 f = open('../dns/staticDNS.conf','r') 611 for l in f.readlines(): 612 # Get rid of comments 613 l = l.strip().split(';')[0].strip() 614 if l: 615 k,v = l.split('=') 614 dns = yaml.load(open('../dns/staticDNS.yaml','r')) 615 for comment, block in dns.iteritems(): 616 for k,v in block.iteritems(): 616 617 if valid_addr(v): 617 618 wleiden_zone[k] = v 618 619 else: 619 620 wleiden_cname[k] = v 620 f.close()621 621 622 622 details = dict() … … 734 734 datadumps[get_fqdn(datadump)] = datadump 735 735 736 datadump['latitude'], datadump['longitude'] = make_map.rd2etrs(datadump['rdnap_x'], datadump['rdnap_y'])736 datadump['latitude'], datadump['longitude'] = rdnap.rd2etrs(datadump['rdnap_x'], datadump['rdnap_y']) 737 737 write_yaml(host, datadump) 738 738 else:
Note:
See TracChangeset
for help on using the changeset viewer.