Initial Commit for ODTN demo repo with demo scripts and demo app
Change-Id: I812c9fbe7a4b5d454038860acbb936fa9b189438
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