Initial OpenECOMP Demo commit
[demo.git] / vnfs / vFW / scripts / v_sink_init.sh
1 #!/bin/bash
2
3 # Set the IP address of the protected network interface of the vFirewall as a default gateway to the unprotected network
4 PROTECTED_NET_GW=$(cat /opt/config/protected_net_gw.txt)
5 UNPROTECTED_NET=$(cat /opt/config/unprotected_net.txt)
6
7 route add -net $UNPROTECTED_NET netmask 255.255.255.0 gw $PROTECTED_NET_GW