The configuration of the coexistence between SFC and Netvirt is added 37/13837/3
authorManuel Buil <manuel.buil@ericsson.com>
Tue, 10 May 2016 09:05:58 +0000 (11:05 +0200)
committerManuel Buil <manuel.buil@ericsson.com>
Tue, 10 May 2016 17:41:01 +0000 (19:41 +0200)
Change-Id: I3ce03c38677ac67df3aae0363048be21b7939bde
Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
prototypes/sfc_tacker/poc.tacker-up.sh

index be647b4..4dbb372 100755 (executable)
@@ -350,6 +350,18 @@ function populate_rc() {
     done
 }
 
+
+#Configure ODL so that it allows the coexistence between Netvirt and SFC
+function coexistence() {
+    curl -i -u admin:admin -H 'Content-type: application/json' -X PUT \
+    -d '{"netvirt-providers-config":{"table-offset":"1"}}' \
+    http://${mgmt_addr}:${odl_port}/restconf/config/netvirt-providers-config:netvirt-providers-config
+
+    curl -i -u admin:admin -H 'Content-type: application/json' -X PUT \
+    -d '{"sfc-of-renderer-config":{"sfc-of-table-offset":"150","sfc-of-app-egress-table-offset":"11"}}' \
+    http://${mgmt_addr}:${odl_port}/restconf/config/sfc-of-renderer:sfc-of-renderer-config
+}
+
 envSetup
 deployTackerClient
 deployJsonrpclib
@@ -359,6 +371,7 @@ deployTackerServer
 populate_client
 orchestarte
 populate_rc
+coexistence
 
 remove_repo "$MYREPO"
 remove_repo "$DEPREPO"