[ONOS-7757] Support onos-local and embedded cluster configurations
- Refactor cluster.json to support internal/external nodes ('controller' and 'storage')
- Bootstrap embedded partitions when 'storage' nodes not present
- Update onos-gen-config script to generate cluster.json based on environment variables
- Update setup scenario to ignore missing $OCC# environment variables
Change-Id: Ia93b64e13d7a7c35ed712da4c681425e3ccf9fe9
diff --git a/tools/package/onos-run-karaf b/tools/package/onos-run-karaf
index d35468a..7c7a8cc 100755
--- a/tools/package/onos-run-karaf
+++ b/tools/package/onos-run-karaf
@@ -55,7 +55,11 @@
cat > $ONOS_DIR/config/cluster.json <<-EOF
{
"name": "default",
- "cluster": [ {"id": "$IP", "ip": "$IP", "port": 9876 } ]
+ "node": {
+ "id": "$IP",
+ "ip": "$IP",
+ "port": 9876
+ }
}
EOF