]> git.sesse.net Git - nms/blobdiff - make-all-config.sh
Update make-switches.pl for TG07.
[nms] / make-all-config.sh
index 4321b568ddb87cd252e3342eddbddcc91d14f118..276a4d41b88c3d39e50827934b429f670617bd16 100755 (executable)
@@ -12,3 +12,6 @@ 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: