add vtn config files

Change-Id: Iea98cf61424eb96ec6f5288f55db42988449581f
diff --git a/mcord/vtn-external.yaml.rack b/mcord/vtn-external.yaml.rack
index e508075..8f56db9 100644
--- a/mcord/vtn-external.yaml.rack
+++ b/mcord/vtn-external.yaml.rack
@@ -12,7 +12,7 @@
       type: tosca.nodes.ONOSService
       requirements:
       properties:
-          kind: CORD-Platform
+          kind: onos
           view_url: /admin/onos/onosservice/$id$/
           no_container: true
           rest_hostname: onos-cord
@@ -21,10 +21,9 @@
     service#vtn:
       type: tosca.nodes.VTNService
       properties:
-          kind: CORD-Platform
           view_url: /admin/vtn/vtnservice/$id$/
           privateGatewayMac: 00:00:00:00:00:01
-          localManagementIp: 10.102.83.2/24
+          localManagementIp: 172.27.0.1/24
           ovsdbPort: 6641
           sshUser: root
           sshKeyFile: /root/node_key
@@ -34,46 +33,181 @@
           xosPassword: letmein
           replaces: service_vtn
 
-    nova-compute-1:
+    only-bucket:
       type: tosca.nodes.Node
 
-    # VTN bridgeId field for node nova-compute-1
-    nova-compute-1_bridgeId_tag:
+    # VTN bridgeId field for node only-bucket
+    only-bucket_bridgeId_tag:
       type: tosca.nodes.Tag
       properties:
           name: bridgeId
-          value: of:0000000000000001
+          value: of:0000001e67d2c98a
       requirements:
           - target:
-              node: nova-compute-1
+              node: only-bucket
               relationship: tosca.relationships.TagsObject
           - service:
               node: service#ONOS_CORD
               relationship: tosca.relationships.MemberOfService
 
-    # VTN dataPlaneIntf field for node nova-compute-1
-    nova-compute-1_dataPlaneIntf_tag:
+    # VTN dataPlaneIntf field for node only-bucket
+    only-bucket_dataPlaneIntf_tag:
       type: tosca.nodes.Tag
       properties:
           name: dataPlaneIntf
           value: fabric
       requirements:
           - target:
-              node: nova-compute-1
+              node: only-bucket
               relationship: tosca.relationships.TagsObject
           - service:
               node: service#ONOS_CORD
               relationship: tosca.relationships.MemberOfService
 
-    # VTN dataPlaneIp field for node nova-compute-1
-    nova-compute-1_dataPlaneIp_tag:
+    # VTN dataPlaneIp field for node only-bucket
+    only-bucket_dataPlaneIp_tag:
       type: tosca.nodes.Tag
       properties:
           name: dataPlaneIp
           value: 10.168.0.253/24
       requirements:
           - target:
-              node: nova-compute-1
+              node: only-bucket
+              relationship: tosca.relationships.TagsObject
+          - service:
+              node: service#ONOS_CORD
+              relationship: tosca.relationships.MemberOfService
+
+    strange-touch:
+      type: tosca.nodes.Node
+
+    # VTN bridgeId field for node strange-touch
+    strange-touch_bridgeId_tag:
+      type: tosca.nodes.Tag
+      properties:
+          name: bridgeId
+          value: of:0000001e67d2ef17
+      requirements:
+          - target:
+              node: strange-touch
+              relationship: tosca.relationships.TagsObject
+          - service:
+              node: service#ONOS_CORD
+              relationship: tosca.relationships.MemberOfService
+
+    # VTN dataPlaneIntf field for node strange-touch
+    strange-touch_dataPlaneIntf_tag:
+      type: tosca.nodes.Tag
+      properties:
+          name: dataPlaneIntf
+          value: fabric
+      requirements:
+          - target:
+              node: strange-touch
+              relationship: tosca.relationships.TagsObject
+          - service:
+              node: service#ONOS_CORD
+              relationship: tosca.relationships.MemberOfService
+
+    # VTN dataPlaneIp field for node strange-touch
+    strange-touch_dataPlaneIp_tag:
+      type: tosca.nodes.Tag
+      properties:
+          name: dataPlaneIp
+          value: 10.168.0.253/24
+      requirements:
+          - target:
+              node: strange-touch
+              relationship: tosca.relationships.TagsObject
+          - service:
+              node: service#ONOS_CORD
+              relationship: tosca.relationships.MemberOfService
+
+    salty-interest:
+      type: tosca.nodes.Node
+
+    # VTN bridgeId field for node salty-interest
+    salty-interest_bridgeId_tag:
+      type: tosca.nodes.Tag
+      properties:
+          name: bridgeId
+          value: of:0000001e67d2ce52
+      requirements:
+          - target:
+              node: salty-interest
+              relationship: tosca.relationships.TagsObject
+          - service:
+              node: service#ONOS_CORD
+              relationship: tosca.relationships.MemberOfService
+
+    # VTN dataPlaneIntf field for node salty-interest
+    salty-interest_dataPlaneIntf_tag:
+      type: tosca.nodes.Tag
+      properties:
+          name: dataPlaneIntf
+          value: fabric
+      requirements:
+          - target:
+              node: salty-interest
+              relationship: tosca.relationships.TagsObject
+          - service:
+              node: service#ONOS_CORD
+              relationship: tosca.relationships.MemberOfService
+
+    # VTN dataPlaneIp field for node salty-interest
+    salty-interest_dataPlaneIp_tag:
+      type: tosca.nodes.Tag
+      properties:
+          name: dataPlaneIp
+          value: 10.168.0.253/24
+      requirements:
+          - target:
+              node: salty-interest
+              relationship: tosca.relationships.TagsObject
+          - service:
+              node: service#ONOS_CORD
+              relationship: tosca.relationships.MemberOfService
+
+    compute1:
+      type: tosca.nodes.Node
+
+    # VTN bridgeId field for node compute1
+    compute1_bridgeId_tag:
+      type: tosca.nodes.Tag
+      properties:
+          name: bridgeId
+          value: of:0000001e67d2ab52
+      requirements:
+          - target:
+              node: compute1
+              relationship: tosca.relationships.TagsObject
+          - service:
+              node: service#ONOS_CORD
+              relationship: tosca.relationships.MemberOfService
+
+    # VTN dataPlaneIntf field for node compute1
+    compute1_dataPlaneIntf_tag:
+      type: tosca.nodes.Tag
+      properties:
+          name: dataPlaneIntf
+          value: fabric
+      requirements:
+          - target:
+              node: compute1
+              relationship: tosca.relationships.TagsObject
+          - service:
+              node: service#ONOS_CORD
+              relationship: tosca.relationships.MemberOfService
+
+    # VTN dataPlaneIp field for node compute1
+    compute1_dataPlaneIp_tag:
+      type: tosca.nodes.Tag
+      properties:
+          name: dataPlaneIp
+          value: 10.168.0.253/24
+      requirements:
+          - target:
+              node: compute1
               relationship: tosca.relationships.TagsObject
           - service:
               node: service#ONOS_CORD
@@ -89,6 +223,6 @@
               node: service#vtn
               relationship: tosca.relationships.UsedByService
       properties:
-          install_dependencies: http://mavenrepo:8080/repository/org/opencord/cord-config/1.1-SNAPSHOT/cord-config-1.1-SNAPSHOT.oar,http://mavenrepo:8080/repository/org/opencord/vtn/1.1-SNAPSHOT/vtn-1.1-SNAPSHOT.oar
+          install_dependencies: http://mavenrepo:8080/repository/org/opencord/cord-config/1.1-rc1/cord-config-1.1-rc1.oar,http://mavenrepo:8080/repository/org/opencord/vtn/1.1-rc1/vtn-1.1-rc1.oar
           dependencies: org.onosproject.drivers, org.onosproject.drivers.ovsdb, org.onosproject.openflow-base, org.onosproject.ovsdb-base, org.onosproject.dhcp
           autogenerate: vtn-network-cfg
diff --git a/mcord/vtnconfig.json.rack b/mcord/vtnconfig.json.rack
new file mode 100644
index 0000000..8a02872
--- /dev/null
+++ b/mcord/vtnconfig.json.rack
@@ -0,0 +1,68 @@
+{
+  "layouts" : { },
+  "ports" : { },
+  "hosts" : { },
+  "devices" : { },
+  "apps" : {
+    "org.opencord.vtn" : {
+      "cordvtn" : {
+        "controllers" : [ "10.6.0.1:6654" ],
+        "localManagementIp" : "172.27.0.1/24",
+        "nodes" : [ {
+          "bridgeId" : "of:0000001E67D2EF17",
+          "dataPlaneIntf" : "fabric",
+          "dataPlaneIp" : "10.6.1.3/24",
+          "hostManagementIp" : "10.6.0.23/24",
+          "hostname" : "strange-touch"
+        }, {
+          "bridgeId" : "of:0000001E67D2C98A",
+          "dataPlaneIntf" : "fabric",
+          "dataPlaneIp" : "10.6.1.2/24",
+          "hostManagementIp" : "10.6.0.21/24",
+          "hostname" : "only-bucket"
+        }, {
+          "bridgeId" : "of:0000001E67D2CE52",
+          "dataPlaneIntf" : "fabric",
+          "dataPlaneIp" : "10.6.1.5/24",
+          "hostManagementIp" : "10.6.0.22/24",
+          "hostname" : "salty-interest"
+        }, {
+          "bridgeId" : "of:0000001E67D2AB52",
+          "dataPlaneIntf" : "fabric",
+          "dataPlaneIp" : "10.6.1.6/24",
+          "hostManagementIp" : "10.6.0.50/24",
+	  "hostManagementIface" : "veth3",
+          "hostname" : "compute1"
+        } ],
+        "openstack" : {
+          "endpoint" : "https://keystone.cord.lab:5000/v2.0",
+          "password" : "VeryLongKeystoneAdminPassword",
+          "tenant" : "admin",
+          "user" : "admin"
+        },
+        "ovsdbPort" : "6641",
+        "privateGatewayMac" : "00:00:00:00:00:01",
+        "publicGateways" : [ {
+          "gatewayIp" : "10.6.1.193",
+          "gatewayMac" : "02:42:0a:06:01:01"
+        }, {
+          "gatewayIp" : "10.6.1.129",
+          "gatewayMac" : "02:42:0a:06:01:01"
+        } ],
+        "ssh" : {
+          "sshKeyFile" : "/root/node_key",
+          "sshPort" : "22",
+          "sshUser" : "ubuntu"
+        },
+        "xos" : {
+          "endpoint" : "http://xos:8888/",
+          "password" : "letmein",
+          "user" : "padmin@vicci.org"
+        }
+      }
+    }
+  },
+  "regions" : { },
+  "links" : { }
+}
+