devstack changes for sfc-tacker OPNFV demo
[groupbasedpolicy.git] / demos / gbp-devstack / devstack-scripts / sfc / sfc03.sh
1 #!/usr/bin/env bash
2
3 if [ -f "/home/vagrant/sfc03.lock" ]; then
4     echo "You have already run sfc03"
5     exit
6 fi
7 echo "writing lock file /home/vagrant/sfc03.lock"
8 touch /home/vagrant/sfc03.lock
9
10 echo "Creating chain 'mychain' under heat/service:"
11 source openrc heat service
12
13 tacker sfc-create --name mychain --chain testVNF1 --symmetrical True
14 tacker sfc-show mychain
15
16
17 echo "Can verify flows by 'dumpflows.sh | grep nsp' on devstack-compute-1 and lack of them on devstack-control. Then run sfc04 to add chain to policy."