Initial Commit for ODTN demo repo with demo scripts and demo app

Change-Id: I812c9fbe7a4b5d454038860acbb936fa9b189438
diff --git a/cassini-demo/config-onos.sh b/cassini-demo/config-onos.sh
new file mode 100755
index 0000000..b77ef5d
--- /dev/null
+++ b/cassini-demo/config-onos.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+onos localhost cfg set org.onosproject.netconf.ctl.impl.NetconfControllerImpl netconfReplyTimeout 20
+onos localhost cfg set org.onosproject.netconf.ctl.impl.NetconfControllerImpl netconfConnectTimeout 20
+onos localhost cfg set org.onosproject.netconf.ctl.impl.NetconfControllerImpl netconfIdleTimeout 30000 
+onos-netcfg localhost ~/openconfig-device-cassini-test1.json
+sleep 10
+onos-netcfg localhost ~/openconfig-device-cassini-test2.json
+sleep 10
+onos-netcfg localhost ~/openconfig-device-cassini-test-link.json
+sleep 2
+curl -X POST --user onos:rocks --header 'Content-Type: application/json' --header 'Accept: application/json' -d@h1.json http://10.172.0.2:8181/onos/v1/hosts
+sleep 2
+curl -X POST --user onos:rocks --header 'Content-Type: application/json' --header 'Accept: application/json' -d@h2.json http://10.172.0.2:8181/onos/v1/hosts
diff --git a/cassini-demo/demo-reset.sh b/cassini-demo/demo-reset.sh
new file mode 100755
index 0000000..2b9424e
--- /dev/null
+++ b/cassini-demo/demo-reset.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+ONOS_APPS=odtn-service
+cd ~/onos
+bazel run onos-local -- clean debug
diff --git a/cassini-demo/h1.json b/cassini-demo/h1.json
new file mode 100644
index 0000000..cc6a37d
--- /dev/null
+++ b/cassini-demo/h1.json
@@ -0,0 +1,13 @@
+{
+  "mac": "3c:fd:fe:9e:6f:c8",
+  "vlan": "2",
+  "ipAddresses": [
+    "10.0.0.1"
+  ],
+  "locations": [
+    {
+      "elementId": "netconf:10.172.0.11:830",
+      "port": "101"
+    }
+  ]
+}
diff --git a/cassini-demo/h2.json b/cassini-demo/h2.json
new file mode 100644
index 0000000..7a83495
--- /dev/null
+++ b/cassini-demo/h2.json
@@ -0,0 +1,13 @@
+{
+  "mac": "3c:fd:fe:9e:6f:c9",
+  "vlan": "2",
+  "ipAddresses": [
+    "10.0.0.2"
+  ],
+  "locations": [
+    {
+      "elementId": "netconf:10.172.0.12:830",
+      "port": "101"
+    }
+  ]
+}
diff --git a/cassini-demo/name-space.sh b/cassini-demo/name-space.sh
new file mode 100755
index 0000000..17ce523
--- /dev/null
+++ b/cassini-demo/name-space.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+# first argument is name of name-space
+# second argument is name of interface to assign
+# third argument is vlan
+# fourth argument is IP to assing to interface
+
+
+ip netns add $1
+ip link set dev $2 netns $1
+ip netns exec $1 ip link add link $2 name $2.$3 type vlan id $3
+ip netns exec $1 ifconfig $2.$3 $4
+ip netns exec $1 ifconfig $2 up
+ip netns exec $1 ifconfig $2.$3 up
diff --git a/cassini-demo/openconfig-device-cassini-test-link.json b/cassini-demo/openconfig-device-cassini-test-link.json
new file mode 100644
index 0000000..017b413
--- /dev/null
+++ b/cassini-demo/openconfig-device-cassini-test-link.json
@@ -0,0 +1,10 @@
+{
+    "links": {
+        "netconf:10.172.0.11:830/101-netconf:10.172.0.12:830/101": {
+            "basic" : {
+                "type": "OPTICAL",
+                "metric": 1
+            }
+        }
+    }
+}
diff --git a/cassini-demo/openconfig-device-cassini-test1.json b/cassini-demo/openconfig-device-cassini-test1.json
new file mode 100644
index 0000000..727f524
--- /dev/null
+++ b/cassini-demo/openconfig-device-cassini-test1.json
@@ -0,0 +1,18 @@
+{
+  "devices" : {
+    "netconf:10.172.0.11:830" : {
+      "basic" : {
+        "name":"cassini1",
+	"driver":"cassini-ocnos"
+      },
+      "netconf" : {
+        "ip" : "10.172.0.11",
+        "port" : "830",
+        "username" : "root",
+        "password" : "cobbler",
+        "idle-timeout" : "0"
+      }
+    }
+  }
+}
+
diff --git a/cassini-demo/openconfig-device-cassini-test2.json b/cassini-demo/openconfig-device-cassini-test2.json
new file mode 100644
index 0000000..e27b113
--- /dev/null
+++ b/cassini-demo/openconfig-device-cassini-test2.json
@@ -0,0 +1,18 @@
+{
+  "devices" : {
+    "netconf:10.172.0.12:830" : {
+      "basic" : {
+        "name":"cassini2",
+	"driver":"cassini-ocnos"
+      },
+      "netconf" : {
+        "ip" : "10.172.0.12",
+        "port" : "830",
+        "username" : "root",
+        "password" : "cobbler",
+        "idle-timeout" : "0"
+      }
+    }
+  }
+}
+