X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=vnfs%2FvFW%2Fscripts%2Fv_sink_init.sh;h=77f4296cbb5f8f6b803512d8aa86c1cc881987d5;hb=7270048fdaa4409349b4ee0c4775dfecd544de1f;hp=16a6750803ac1f673cd619452322be8dba559341;hpb=366b7e2ea0e15889e3de08916c4406d98d6b509d;p=demo.git diff --git a/vnfs/vFW/scripts/v_sink_init.sh b/vnfs/vFW/scripts/v_sink_init.sh index 16a67508..77f4296c 100644 --- a/vnfs/vFW/scripts/v_sink_init.sh +++ b/vnfs/vFW/scripts/v_sink_init.sh @@ -2,6 +2,6 @@ # Set the IP address of the protected network interface of the vFirewall as a default gateway to the unprotected network PROTECTED_NET_GW=$(cat /opt/config/protected_net_gw.txt) -UNPROTECTED_NET=$(cat /opt/config/unprotected_net.txt) +UNPROTECTED_NET=$(cat /opt/config/unprotected_net.txt | cut -d'/' -f1) route add -net $UNPROTECTED_NET netmask 255.255.255.0 gw $PROTECTED_NET_GW