aboutsummaryrefslogtreecommitdiffstats
path: root/extras/strongswan/vpp_sswan/docker/scripts/init_docker1.sh
blob: 9be77867683f24ed5893287bc7adeb299b133e4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

echo "Initialization Docker 1 - VPP with SSWAN"

cd /root/vpp
make build-release

cd /root/vpp/extras/strongswan/vpp_sswan
make clean
make all

cd /root/vpp/build-root/build-vpp-native/external/sswan
sudo make install

cd /root/vpp/extras/strongswan/vpp_sswan
make install

sudo systemctl daemon-reload
sudo systemctl restart strongswan.service

echo "### Loaded plugin in strogswan"
sudo swanctl --stats

sudo cp /root/vpp_sswan/docker/configs/swanctl_docker1.conf /etc/swanctl/conf.d/swanctl.conf