X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=make-all-config.sh;h=10d3180e12c28a6dc3ab3ad049911bc25313ad36;hb=23344eda0979f5e23d5fd016ef4903f7dc572e63;hp=5a8c893f8809469f915e8ccab04bbc5e3a5a950a;hpb=05e1bb96cc098a2c3d28bda0e204c9c8e068c580;p=nms diff --git a/make-all-config.sh b/make-all-config.sh index 5a8c893..10d3180 100755 --- a/make-all-config.sh +++ b/make-all-config.sh @@ -6,4 +6,8 @@ cat static-switches.txt >> switches.txt ./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) -scp mbd-ports sesse@f1:/tftpboot/portcfg/ +./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