Test: Generate cluster.json for ONOS single node cluster while starting ONOS.
A default cluster.json is loaded for 172.17.0.2 (common case for cord-tester)
Otherwise its regenerated on the fly during ONOS cord-tester boot.
It also eliminates the onos.cluster.metadata.uri warning in the logs because of missing cluster.json.
Change-Id: I6e6ec85254f135d90a86cb540b68c0bdfd030b3b
diff --git a/src/test/setup/onos-config/cluster.json b/src/test/setup/onos-config/cluster.json
new file mode 100644
index 0000000..72ae4c0
--- /dev/null
+++ b/src/test/setup/onos-config/cluster.json
@@ -0,0 +1,18 @@
+{
+ "nodes": [
+ {
+ "ip": "172.17.0.2",
+ "id": "172.17.0.2",
+ "port": 9876
+ }
+ ],
+ "name": 4220150786,
+ "partitions": [
+ {
+ "id": 1,
+ "members": [
+ "172.17.0.2"
+ ]
+ }
+ ]
+}