Add cnf for firewall with network of sriov
[multicloud/k8s.git] / starlingx / demo / firewall-sriov / charts / sink-sriov / resources / scripts / init / vsn_start.sh
1 #!/bin/bash
2
3 apt-get update
4 apt-get install -y sudo curl net-tools iproute2 inetutils-ping wget darkstat unzip
5
6 echo "provision interfaces"
7
8 ifconfig veth22 10.10.2.2/24
9
10 echo "add route entries"
11 ip route add 10.10.1.0/24 via 10.10.2.1
12
13 echo "update darkstat configuration"
14 sed -i "s/START_DARKSTAT=.*/START_DARKSTAT=yes/g;s/INTERFACE=.*/INTERFACE=\"-i veth22\"/g" /etc/darkstat/init.cfg
15
16 echo "start darkstat"
17
18 darkstat -i veth22
19
20 echo "done"
21 sleep infinity