Bug 3738: GBP coexistence fixes
[groupbasedpolicy.git] / demos / gbp-devstack / devstack-scripts / sfc / sfc04.sh
index dde528cac5adfe122b55d609fe9f588045dd2df6..7c65e72e2d7fa42f5c68ed2f8f1f0ce6937275c5 100755 (executable)
@@ -7,9 +7,34 @@ fi
 echo "writing lock file /home/vagrant/sfc04.lock"
 touch /home/vagrant/sfc04.lock
 
-python /vagrant/devstack-scripts/sfc/chain.py $ODL client_sg web_sg mychain
+neutron security-group-rule-list
+
+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.
+
+You can enter this either via the YangUI or sending:
+
+http://localhost:8181/restconf/operations/neutron-gbp-mapper:change-action-of-security-group-rules
+{
+    "input": {
+        "security-group-rule": [
+            {
+                "uuid": "<uuid of rule1>"
+            },
+            {
+                "uuid": "<uuid of rule2>"
+            }
+        ],
+        "action": {
+            "sfc-chain-name": "mychain"
+        }
+    }
+}'
+
+#python /vagrant/devstack-scripts/sfc/chain.py $ODL client_sg web_sg mychain
 
 echo "Chain action added to policy. 
 
+Enter route for SF on devstack-compute-1:
+
 kernelmods.sh
 "