Add INFO.yaml for GBP
[groupbasedpolicy.git] / demos / gbp-devstack / devstack-scripts / sfc / sfc04.sh
1 #!/usr/bin/env bash
2
3 if [ -f "/home/vagrant/sfc04.lock" ]; then
4     echo "You have already run sfc04"
5     exit
6 fi
7 echo "writing lock file /home/vagrant/sfc04.lock"
8 touch /home/vagrant/sfc04.lock
9
10 neutron security-group-rule-list
11
12 echo 'Select a security-group-rule UUID from the above list to apply a chain to. This step can be repeated to add more security group rules to the chain.
13
14 You can enter this either via the YangUI or sending:
15
16 http://localhost:8181/restconf/operations/neutron-gbp-mapper:change-action-of-security-group-rules
17 {
18     "input": {
19         "security-group-rule": [
20             {
21                 "uuid": "<uuid of rule1>"
22             },
23             {
24                 "uuid": "<uuid of rule2>"
25             }
26         ],
27         "action": {
28             "sfc-chain-name": "mychain"
29         }
30     }
31 }'
32
33 #python /vagrant/devstack-scripts/sfc/chain.py $ODL client_sg web_sg mychain
34
35 echo "Chain action added to policy. 
36
37 Enter route for SF on devstack-compute-1:
38
39 kernelmods.sh
40 "