X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=make-all-config.sh;fp=make-all-config.sh;h=10d3180e12c28a6dc3ab3ad049911bc25313ad36;hb=f35078d3cda54f3cbdaab03d7def66bcfbb560dd;hp=c186b2874f7c3d6af0396c1be467388e95dc2978;hpb=84ddcf83d5dbeac1b6fbb18abcb132bad9f91289;p=nms diff --git a/make-all-config.sh b/make-all-config.sh index c186b28..10d3180 100755 --- a/make-all-config.sh +++ b/make-all-config.sh @@ -8,3 +8,6 @@ cat static-switches.txt >> switches.txt (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