https://jira.opencord.org/browse/CORD-824
Support for connecting multiple controllers in voltha provided.
Addressed review comments patch 7
Change-Id: I2d2375c7754014743c305a0f3841debe5eb3e795
diff --git a/compose/docker-compose-ofagent-test.yml b/compose/docker-compose-ofagent-test.yml
new file mode 100644
index 0000000..836bfc6
--- /dev/null
+++ b/compose/docker-compose-ofagent-test.yml
@@ -0,0 +1,90 @@
+version: '2'
+services:
+
+ voltha:
+ image: cord/voltha
+ command: [
+ "/voltha/voltha/main.py",
+ "--rest-port=8880",
+ "--grpc-port=50555",
+ "--instance-id-is-container-name"
+ ]
+ ports:
+ - 8880:8880
+ - 50055:50555
+ - 18880
+ volumes:
+ - "/var/run/docker.sock:/tmp/docker.sock"
+ #
+ # Chameleon server instance(s)
+ #
+ chameleon:
+ image: cord/chameleon
+ command: [
+ "/chameleon/chameleon/main.py",
+ "--rest-port=8881",
+ "--grpc-endpoint=${DOCKER_HOST_IP}:50055",
+ "--instance-id-is-container-name"
+ ]
+ ports:
+ - 8881:8881
+ volumes:
+ - "/var/run/docker.sock:/tmp/docker.sock"
+ #
+ # onos-1
+ #
+ onos1:
+ image: onosproject/onos:1.8
+ container_name: onos1
+ ports:
+ - 6633:6653
+ - 8101:8101
+ - 8181:8181
+ environment:
+ ONOS_APPS: drivers,openflow
+ volumes:
+ - "/var/run/docker.sock:/tmp/docker.sock"
+ restart: unless-stopped
+
+ #
+ # onos-2
+ #
+ onos2:
+ image: onosproject/onos:1.8
+ container_name: onos2
+ ports:
+ - 6644:6653
+ - 8102:8101
+ - 8182:8181
+ environment:
+ ONOS_APPS: drivers,openflow
+ volumes:
+ - "/var/run/docker.sock:/tmp/docker.sock"
+ restart: unless-stopped
+
+ #
+ # onos-3
+ #
+ onos3:
+ image: onosproject/onos:1.8
+ container_name: onos3
+ ports:
+ - 6655:6653
+ - 8103:8101
+ - 8183:8181
+ environment:
+ ONOS_APPS: drivers,openflow
+ volumes:
+ - "/var/run/docker.sock:/tmp/docker.sock"
+ restart: unless-stopped
+ #
+ # ofagent server instance
+ #
+ ofagent:
+ image: cord/ofagent
+ command: /ofagent/ofagent/main.py --grpc-endpoint=${DOCKER_HOST_IP}:50055 --controller ${DOCKER_HOST_IP}:6633 ${DOCKER_HOST_IP}:6644 ${DOCKER_HOST_IP}:6655
+ depends_on:
+ - voltha
+ volumes:
+ - "/var/run/docker.sock:/tmp/docker.sock"
+ restart: unless-stopped
\ No newline at end of file