This update add two arguments to voltha when it gets started:
   1) inter-core-subnet: the subnet to connect to for inter core communication
   2) pon-subnet: the subnet to connect to for PON communication

This requires that the voltha_net is created with a specified subnet and that
subnet is specified in the docker compose file, e.g.:

docker network create --driver overlay --subnet 10.0.1.0/24 voltha_net

And in the compose.yml file add the following options:

      - --inter-core-subnet=10.0.1.0/24
      - --pon-subnet=10.0.1.0/24

This update guarantees that the voltha instance is connected to the correct
network.

Change-Id: I5d29ab54282c4ba9aff5ba165fdb37352cfaa0fd
diff --git a/compose/docker-compose-voltha-swarm.yml b/compose/docker-compose-voltha-swarm.yml
index 39532f7..ff03c67 100644
--- a/compose/docker-compose-voltha-swarm.yml
+++ b/compose/docker-compose-voltha-swarm.yml
@@ -15,6 +15,9 @@
       - --instance-id-is-container-name
       - --interface=eth2
       - --backend=consul
+      - --inter-core-subnet=10.0.1.0/24
+      - --pon-subnet=10.0.1.0/24
+
     networks:
       - net
     ports:
@@ -26,5 +29,6 @@
 
 networks:
   net:
-    external:
-      name: voltha_net
+     external:
+       name: voltha_net
+