X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=make-all-config.sh;h=276a4d41b88c3d39e50827934b429f670617bd16;hb=065361daac62b4cdb33cf19caa534e29ac1dfde0;hp=1712e04ac82f5d027441821f6382ef53088797f1;hpb=024188ab57b9d8cd22dd7359cadd038d3f0fdba1;p=nms diff --git a/make-all-config.sh b/make-all-config.sh index 1712e04..276a4d4 100755 --- a/make-all-config.sh +++ b/make-all-config.sh @@ -1,4 +1,17 @@ #! /bin/sh ./planning/planning +scp switches.txt patchlist.txt space:/root/ +cat static-switches.txt >> switches.txt ./config/make-dhcpd.pl > /etc/dhcp3/dhcpd.conf ./config/make-named.pl > /etc/bind/named.conf +./config/make-named-secondary.pl | ssh root@insert 'cat > /etc/bind/named.conf' +./config/make-missing-zones.pl +(cd mbd && ./generate-helper-list.pl > ../mbd-ports) +./config/make-port-config.pl +scp mbd-ports *-config sesse@f1:/tftpboot/portcfg/ + +# regenerate the mbd netlist +(echo '# Autogenerated. Do not touch!' ; echo "package Config;"; echo 'our @networks = (' ; cut -d" " -f1-2 switches.txt | perl -e 'while (<>) { chomp; my ($net,$mask) = split / /; print "\t\"$net/$mask\",\n"; }' ; echo ');' ; echo '1;') > mbd/nets.pl + +perl web/make-switches.pl > switches.sql +scp switches.sql root@space: