update onos config file for config system, add more scripts
Change-Id: I5aa96764a549a8fa20e247751648e612fcf18c13
diff --git a/TestON/tests/SDNIPfunction/Dependency/CASE4-ping-as2host.sh b/TestON/tests/SDNIPfunction/Dependency/CASE4-ping-as2host.sh
new file mode 100755
index 0000000..f7fe154
--- /dev/null
+++ b/TestON/tests/SDNIPfunction/Dependency/CASE4-ping-as2host.sh
@@ -0,0 +1,41 @@
+#!/bin/bash
+
+
+#all the address in this for loop should work
+
+# ping test between as2 and as3
+for ((i=0;i<10;i++)); do
+
+ #echo '------from 3.0.0.x to 4.0.1.'$j'------'
+
+ for ((j=0; j<10; ++j )) ; do
+ echo '3.0.'$i'.1 -> 4.0.'$j'.1'
+ ping -c 1 -w 1 -I 3.0.$i.1 4.0.$j.1 | grep 'from 4.0.'$j'.1'
+
+ done
+
+done
+for ((i=0;i<10;i++)); do
+
+ #echo '------from 3.0.0.x to 5.0.1.'$j'------'
+
+ for ((j=0; j<10; ++j )) ; do
+ echo '3.0.'$i'.1 -> 5.0.'$j'.1'
+ ping -c 1 -w 1 -I 3.0.$i.1 5.0.$j.1 | grep 'from 5.0.'$j'.1'
+
+ done
+
+done
+
+# ping test between as2 and as4
+for ((i=1;i<2;i++)); do
+ for ((prefix=101; prefix<=200; ++prefix)) ; do
+ for ((j=0; j<10; ++j )) ; do
+ echo '3.0.0.'$i' - > '$prefix'.0.'$j'.1'
+ ping -c 1 -w 1 -I 3.0.0.$i $prefix.0.$j.1 | grep 'from '$prefix'.0.'$j'.1'
+
+ done
+ done
+
+done
+
diff --git a/TestON/tests/SDNIPfunction/Dependency/SDNIPfuntionMininet.py b/TestON/tests/SDNIPfunction/Dependency/SDNIPfuntionMininet.py
index 5eba83e..a1554b2 100755
--- a/TestON/tests/SDNIPfunction/Dependency/SDNIPfuntionMininet.py
+++ b/TestON/tests/SDNIPfunction/Dependency/SDNIPfuntionMininet.py
@@ -342,7 +342,7 @@
root1.cmd('ssh -N -o "PasswordAuthentication no" \
-o "StrictHostKeyChecking no" -L 2605:1.1.1.1:2605 1.1.1.1 &')
'''
- time.sleep( 3000000000 )
+ # time.sleep( 3000000000 )
CLI( net )
# Close the ssh port forwarding