Remove outdated tests
diff --git a/TestON/tests/FuncNext/FuncNext.params b/TestON/tests/FuncNext/FuncNext.params
deleted file mode 100755
index 34d8a56..0000000
--- a/TestON/tests/FuncNext/FuncNext.params
+++ /dev/null
@@ -1,43 +0,0 @@
-<PARAMS>
-
- <testcases>1,4,5,7,3</testcases>
-
- #Environment variables
- <ENV>
- <cellName>driver_test</cellName>
- </ENV>
-
- <CTRL>
- <ip1>10.128.60.11</ip1>
- <port1>6633</port1>
- </CTRL>
-
- <PING>
- <source1>h8</source1>
- <source2>h9</source2>
- <source3>h10</source3>
- <source4>h11</source4>
- <source5>h12</source5>
- <source6>h13</source6>
- <source7>h14</source7>
- <source8>h15</source8>
- <source9>h16</source9>
- <source10>h17</source10>
- <target1>10.0.0.18</target1>
- <target2>10.0.0.19</target2>
- <target3>10.0.0.20</target3>
- <target4>10.0.0.21</target4>
- <target5>10.0.0.22</target5>
- <target6>10.0.0.23</target6>
- <target7>10.0.0.24</target7>
- <target8>10.0.0.25</target8>
- <target9>10.0.0.26</target9>
- <target10>10.0.0.27</target10>
- </PING>
-
- <timers>
- <LinkDiscovery>5</LinkDiscovery>
- <SwitchDiscovery>31</SwitchDiscovery>
- </timers>
-
-</PARAMS>
diff --git a/TestON/tests/FuncNext/FuncNext.py b/TestON/tests/FuncNext/FuncNext.py
deleted file mode 100755
index c0b96d2..0000000
--- a/TestON/tests/FuncNext/FuncNext.py
+++ /dev/null
@@ -1,608 +0,0 @@
-
-#Testing the basic functionality of ONOS Next
-#For sanity and driver functionality excercises only.
-
-import time
-import sys
-import os
-import re
-import time
-import json
-
-time.sleep(1)
-class FuncNext:
- def __init__(self):
- self.default = ''
-
- def CASE1(self, main):
- '''
- Startup sequence:
- git pull
- mvn clean install
- onos-package
- cell <name>
- onos-verify-cell
- onos-install -f
- onos-wait-for-start
- '''
-
- cell_name = main.params['ENV']['cellName']
- ONOS1_ip = main.params['CTRL']['ip1']
- ONOS1_port = main.params['CTRL']['port1']
-
- main.case("Setting up test environment")
-
- main.step("Git checkout and pull master and get version")
- main.ONOSbench.git_checkout("master")
- git_pull_result = main.ONOSbench.git_pull()
- print "git_pull_result = ", git_pull_result
- version_result = main.ONOSbench.get_version()
-
- if git_pull_result == 2:
- main.step("Using mvn clean & install")
- clean_install_result = main.ONOSbench.clean_install()
- #clean_install_result = main.TRUE
-
- main.step("Applying cell variable to environment")
- cell_result1 = main.ONOSbench.set_cell(cell_name)
- verify_result = main.ONOSbench.verify_cell()
- cell_result2 = main.ONOS2.set_cell(cell_name)
- #verify_result = main.ONOS2.verify_cell()
- main.ONOS2.start_onos_cli(ONOS_ip=main.params['CTRL']['ip1'])
-
- cell_result = cell_result1 and cell_result2
-
- main.step("Creating ONOS package")
- package_result = main.ONOSbench.onos_package()
-
- #main.step("Creating a cell")
- #cell_create_result = main.ONOSbench.create_cell_file(**************)
-
- main.step("Installing ONOS package")
- onos_install_result = main.ONOSbench.onos_install()
- onos1_isup = main.ONOSbench.isup()
-
- main.step("Starting ONOS service")
- start_result = main.ONOSbench.onos_start(ONOS1_ip)
-
- case1_result = (package_result and\
- cell_result and verify_result and onos_install_result and\
- onos1_isup and start_result )
- utilities.assert_equals(expect=main.TRUE, actual=case1_result,
- onpass="Test startup successful",
- onfail="Test startup NOT successful")
-
- def CASE11(self, main):
- '''
- Cleanup sequence:
- onos-service <node_ip> stop
- onos-uninstall
-
- TODO: Define rest of cleanup
-
- '''
-
- ONOS1_ip = main.params['CTRL']['ip1']
-
- main.case("Cleaning up test environment")
-
- main.step("Testing ONOS kill function")
- kill_result = main.ONOSbench.onos_kill(ONOS1_ip)
-
- main.step("Stopping ONOS service")
- stop_result = main.ONOSbench.onos_stop(ONOS1_ip)
-
- main.step("Uninstalling ONOS service")
- uninstall_result = main.ONOSbench.onos_uninstall()
-
- def CASE3(self, main):
- '''
- Test 'onos' command and its functionality in driver
- '''
-
- ONOS1_ip = main.params['CTRL']['ip1']
-
- main.case("Testing 'onos' command")
-
- main.step("Sending command 'onos -w <onos-ip> system:name'")
- cmdstr1 = "system:name"
- cmd_result1 = main.ONOSbench.onos_cli(ONOS1_ip, cmdstr1)
- main.log.info("onos command returned: "+cmd_result1)
-
- main.step("Sending command 'onos -w <onos-ip> onos:topology'")
- cmdstr2 = "onos:topology"
- cmd_result2 = main.ONOSbench.onos_cli(ONOS1_ip, cmdstr2)
- main.log.info("onos command returned: "+cmd_result2)
-
-
-
- def CASE4(self, main):
- import re
- import time
- main.case("Pingall Test")
- main.step("Assigning switches to controllers")
- for i in range(1,29):
- if i ==1:
- main.Mininet1.assign_sw_controller(sw=str(i),ip1=ONOS1_ip,port1=ONOS1_port)
- elif i>=2 and i<5:
- main.Mininet1.assign_sw_controller(sw=str(i),ip1=ONOS1_ip,port1=ONOS1_port)
- elif i>=5 and i<8:
- main.Mininet1.assign_sw_controller(sw=str(i),ip1=ONOS1_ip,port1=ONOS1_port)
- elif i>=8 and i<18:
- main.Mininet1.assign_sw_controller(sw=str(i),ip1=ONOS1_ip,port1=ONOS1_port)
- elif i>=18 and i<28:
- main.Mininet1.assign_sw_controller(sw=str(i),ip1=ONOS1_ip,port1=ONOS1_port)
- else:
- main.Mininet1.assign_sw_controller(sw=str(i),ip1=ONOS1_ip,port1=ONOS1_port)
- Switch_Mastership = main.TRUE
- for i in range (1,29):
- if i==1:
- response = main.Mininet1.get_sw_controller("s"+str(i))
- print("Response is " + str(response))
- if re.search("tcp:"+ONOS1_ip,response):
- Switch_Mastership = Switch_Mastership and main.TRUE
- else:
- Switch_Mastership = main.FALSE
- elif i>=2 and i<5:
- response = main.Mininet1.get_sw_controller("s"+str(i))
- print("Response is " + str(response))
- if re.search("tcp:"+ONOS1_ip,response):
- Switch_Mastership = Switch_Mastership and main.TRUE
- else:
- Switch_Mastership = main.FALSE
- elif i>=5 and i<8:
- response = main.Mininet1.get_sw_controller("s"+str(i))
- print("Response is " + str(response))
- if re.search("tcp:"+ONOS1_ip,response):
- Switch_Mastership = Switch_Mastership and main.TRUE
- else:
- Switch_Mastership = main.FALSE
- elif i>=8 and i<18:
- response = main.Mininet1.get_sw_controller("s"+str(i))
- print("Response is " + str(response))
- if re.search("tcp:"+ONOS1_ip,response):
- Switch_Mastership = Switch_Mastership and main.TRUE
- else:
- Switch_Mastership = main.FALSE
- elif i>=18 and i<28:
- response = main.Mininet1.get_sw_controller("s"+str(i))
- print("Response is " + str(response))
- if re.search("tcp:"+ONOS1_ip,response):
- Switch_Mastership = Switch_Mastership and main.TRUE
- else:
- Switch_Mastership = main.FALSE
- else:
- response = main.Mininet1.get_sw_controller("s"+str(i))
- print("Response is" + str(response))
- if re.search("tcp:" +ONOS1_ip,response):
- Switch_Mastership = Switch_Mastership and main.TRUE
- else:
- Switch_Mastership = main.FALSE
-
- if Switch_Mastership == main.TRUE:
- main.log.report("MasterControllers assigned correctly")
- utilities.assert_equals(expect = main.TRUE,actual=Switch_Mastership,
- onpass="MasterControllers assigned correctly")
- '''
- for i in range (1,29):
- main.Mininet1.assign_sw_controller(sw=str(i),count=5,
- ip1=ONOS1_ip,port1=ONOS1_port,
- ip2=ONOS2_ip,port2=ONOS2_port,
- ip3=ONOS3_ip,port3=ONOS3_port,
- ip4=ONOS4_ip,port4=ONOS4_port,
- ip5=ONOS5_ip,port5=ONOS5_port)
- '''
- #REACTIVE FWD test
-
- main.step("Get list of hosts from Mininet")
- host_list = main.Mininet1.get_hosts()
- main.log.info(host_list)
-
- main.step("Get host list in ONOS format")
- host_onos_list = main.ONOS2.get_hosts_id(host_list)
- main.log.info(host_onos_list)
- #time.sleep(5)
-
- #We must use ping from hosts we want to add intents from
- #to make the hosts talk
- #main.Mininet2.handle.sendline("\r")
- #main.Mininet2.handle.sendline("h4 ping 10.1.1.1 -c 1 -W 1")
- #time.sleep(3)
- #main.Mininet2.handle.sendline("h5 ping 10.1.1.1 -c 1 -W 1")
- #time.sleep(5)
-
- main.step("Pingall")
- ping_result = main.FALSE
- while ping_result == main.FALSE:
- time1 = time.time()
- ping_result = main.Mininet1.pingall()
- time2 = time.time()
- print "Time for pingall: %2f seconds" % (time2 - time1)
-
- #Start onos cli again because u might have dropped out of onos prompt to the shell prompt
- #if there was no activity
- main.ONOS2.start_onos_cli(ONOS_ip=main.params['CTRL']['ip1'])
-
- main.step("Get hosts")
- main.ONOS2.handle.sendline("hosts")
- main.ONOS2.handle.expect("onos>")
- hosts = main.ONOS2.handle.before
- main.log.info(hosts)
-
- main.step("Get all devices id")
- devices_id_list = main.ONOS2.get_all_devices_id()
- main.log.info(devices_id_list)
-
- #ONOS displays the hosts in hex format unlike mininet which does in decimal format
- #So take care while adding intents
-
- main.step("Add host-to-host intents for mininet hosts h8 and h18 or ONOS hosts h8 and h12")
- hth_intent_result = main.ONOS2.add_host_intent("00:00:00:00:00:08/-1", "00:00:00:00:00:12/-1")
- hth_intent_result = main.ONOS2.add_host_intent("00:00:00:00:00:09/-1", "00:00:00:00:00:13/-1")
- hth_intent_result = main.ONOS2.add_host_intent("00:00:00:00:00:0A/-1", "00:00:00:00:00:14/-1")
- hth_intent_result = main.ONOS2.add_host_intent("00:00:00:00:00:0B/-1", "00:00:00:00:00:15/-1")
- hth_intent_result = main.ONOS2.add_host_intent("00:00:00:00:00:0C/-1", "00:00:00:00:00:16/-1")
- hth_intent_result = main.ONOS2.add_host_intent("00:00:00:00:00:0D/-1", "00:00:00:00:00:17/-1")
- hth_intent_result = main.ONOS2.add_host_intent("00:00:00:00:00:0E/-1", "00:00:00:00:00:18/-1")
- hth_intent_result = main.ONOS2.add_host_intent("00:00:00:00:00:0F/-1", "00:00:00:00:00:19/-1")
- hth_intent_result = main.ONOS2.add_host_intent("00:00:00:00:00:10/-1", "00:00:00:00:00:1A/-1")
- hth_intent_result = main.ONOS2.add_host_intent("00:00:00:00:00:11/-1", "00:00:00:00:00:1B/-1")
-
-
-
- print "_____________________________________________________________________________________"
- '''
- main.step("Add point-to-point intents for mininet hosts h8 and h18 or ONOS hosts h8 and h12")
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000003008", 1, "of:0000000000006018", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000006018", 1, "of:0000000000003008", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- main.step("Add point-to-point intents for mininet hosts h9 and h19 or ONOS hosts h9 and h13")
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000003009", 1, "of:0000000000006019", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000006019", 1, "of:0000000000003009", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- main.step("Add point-to-point intents for mininet hosts h10 and h20 or ONOS hosts hA and h14")
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000003010", 1, "of:0000000000006020", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000006020", 1, "of:0000000000003010", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- main.step("Add point-to-point intents for mininet hosts h11 and h21 or ONOS hosts hB and h15")
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000003011", 1, "of:0000000000006021", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000006021", 1, "of:0000000000003011", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- main.step("Add point-to-point intents for mininet hosts h12 and h22 or ONOS hosts hC and h16")
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000003012", 1, "of:0000000000006022", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000006022", 1, "of:0000000000003012", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- main.step("Add point-to-point intents for mininet hosts h13 and h23 or ONOS hosts hD and h17")
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000003013", 1, "of:0000000000006023", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000006023", 1, "of:0000000000003013", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- main.step("Add point-to-point intents for mininet hosts h14 and h24 or ONOS hosts hE and h18")
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000003014", 1, "of:0000000000006024", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000006024", 1, "of:0000000000003014", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- main.step("Add point-to-point intents for mininet hosts h15 and h25 or ONOS hosts hF and h19")
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000003015", 1, "of:0000000000006025", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000006025", 1, "of:0000000000003015", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- main.step("Add point-to-point intents for mininet hosts h16 and h26 or ONOS hosts h10 and h1A")
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000003016", 1, "of:0000000000006026", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000006026", 1, "of:0000000000003016", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- main.step("Add point-to-point intents for mininet hosts h17 and h27 or ONOS hosts h11 and h1B")
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000003017", 1, "of:0000000000006027", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- ptp_intent_result = main.ONOS2.add_point_intent("of:0000000000006027", 1, "of:0000000000003017", 1)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOS2.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
-
- print("_______________________________________________________________________________________")
- '''
-
- #Unistall onos-app-fwd app to disable reactive forwarding
- appUninstall_result = main.ONOS2.feature_uninstall("onos-app-fwd")
- main.log.info("onos-app-fwd uninstalled")
-
- #After reactive forwarding is disabled, the reactive flows on switches timeout in 10-15s
- #So sleep for 15s
- time.sleep(15)
-
- flowHandle = main.ONOS2.flows()
- print "flowHandle = ", flowHandle
-
- count = 1
- i = 8
- Ping_Result = main.TRUE
- #while i<10:
- while i <18 :
- main.log.info("\n\nh"+str(i)+" is Pinging h" + str(i+10))
- ping = main.Mininet1.pingHost(src="h"+str(i),target="h"+str(i+10))
- if ping == main.FALSE and count <5:
- count+=1
- i = 8
- Ping_Result = main.FALSE
- main.log.report("Ping between h" + str(i) + " and h" + str(i+10) + " failed. Making attempt number "+str(count) + " in 2 seconds")
- time.sleep(2)
- elif ping==main.FALSE:
- main.log.report("All ping attempts have failed")
- i=19
- Ping_Result = main.FALSE
- elif ping==main.TRUE:
- main.log.info("Ping test passed!")
- i+=1
- Ping_Result = main.TRUE
- else:
- main.log.info("Unknown error")
- Ping_Result = main.ERROR
- if Ping_Result==main.FALSE:
- main.log.report("Intents have not ben installed correctly. Cleaning up")
- #main.cleanup()
- #main.exit()
- if Ping_Result==main.TRUE:
- main.log.report("Intents have been installed correctly")
-
- case4_result = Switch_Mastership and Ping_Result
- utilities.assert_equals(expect=main.TRUE, actual=case4_result,
- onpass="Pingall Test successful",
- onfail="Pingall Test NOT successful")
-
- def CASE5(self,main) :
- import json
- from subprocess import Popen, PIPE
- from sts.topology.teston_topology import TestONTopology # assumes that sts is already in you PYTHONPATH
- #main.ONOS2.start_onos_cli(ONOS_ip=main.params['CTRL']['ip1'])
- deviceResult = main.ONOS2.devices()
- linksResult = main.ONOS2.links()
- portsResult = main.ONOS2.ports()
- print "**************"
- main.step("Start continuous pings")
- main.Mininet2.pingLong(src=main.params['PING']['source1'],
- target=main.params['PING']['target1'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source2'],
- target=main.params['PING']['target2'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source3'],
- target=main.params['PING']['target3'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source4'],
- target=main.params['PING']['target4'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source5'],
- target=main.params['PING']['target5'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source6'],
- target=main.params['PING']['target6'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source7'],
- target=main.params['PING']['target7'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source8'],
- target=main.params['PING']['target8'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source9'],
- target=main.params['PING']['target9'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source10'],
- target=main.params['PING']['target10'],pingTime=500)
-
- main.step("Create TestONTopology object")
- global ctrls
- ctrls = []
- count = 1
- while True:
- temp = ()
- if ('ip' + str(count)) in main.params['CTRL']:
- temp = temp + (getattr(main,('ONOS' + str(count))),)
- temp = temp + ("ONOS"+str(count),)
- temp = temp + (main.params['CTRL']['ip'+str(count)],)
- temp = temp + (eval(main.params['CTRL']['port'+str(count)]),)
- ctrls.append(temp)
- count = count + 1
- else:
- break
- global MNTopo
- Topo = TestONTopology(main.Mininet1, ctrls) # can also add Intent API info for intent operations
- MNTopo = Topo
-
- Topology_Check = main.TRUE
- main.step("Compare ONOS Topology to MN Topology")
- devices_json = main.ONOS2.devices()
- links_json = main.ONOS2.links()
- ports_json = main.ONOS2.ports()
- print "devices_json= ", devices_json
-
- result1 = main.Mininet1.compare_switches(MNTopo, json.loads(devices_json))
- print "***********************"
- result2 = main.Mininet1.compare_links(MNTopo, json.loads(links_json))
- print "***********************"
- result3 = main.Mininet1.compare_ports(MNTopo, json.loads(ports_json))
-
- result = result1 and result2 and result3
- print "***********************"
- if result == main.TRUE:
- main.log.report("ONOS"+ " Topology matches MN Topology")
- utilities.assert_equals(expect=main.TRUE,actual=result,
- onpass="ONOS" + " Topology matches MN Topology",
- onfail="ONOS" + " Topology does not match MN Topology")
- Topology_Check = Topology_Check and result
- utilities.assert_equals(expect=main.TRUE,actual=Topology_Check,
- onpass="Topology checks passed", onfail="Topology checks failed")
-
-
- def CASE7 (self,main):
-
- ONOS1_ip = main.params['CTRL']['ip1']
-
- link_sleep = int(main.params['timers']['LinkDiscovery'])
-
- main.log.report("Killing a link to ensure that link discovery is consistent")
- main.case("Killing a link to Ensure that Link Discovery is Working Properly")
- main.step("Start continuous pings")
-
- main.Mininet2.pingLong(src=main.params['PING']['source1'],
- target=main.params['PING']['target1'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source2'],
- target=main.params['PING']['target2'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source3'],
- target=main.params['PING']['target3'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source4'],
- target=main.params['PING']['target4'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source5'],
- target=main.params['PING']['target5'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source6'],
- target=main.params['PING']['target6'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source7'],
- target=main.params['PING']['target7'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source8'],
- target=main.params['PING']['target8'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source9'],
- target=main.params['PING']['target9'],pingTime=500)
- main.Mininet2.pingLong(src=main.params['PING']['source10'],
- target=main.params['PING']['target10'],pingTime=500)
-
-
- main.step("Determine the current number of switches and links")
- topology_output = main.ONOS2.topology()
- topology_result = main.ONOS1.get_topology(topology_output)
- activeSwitches = topology_result['devices']
- links = topology_result['links']
- print "activeSwitches = ", type(activeSwitches)
- print "links = ", type(links)
- main.log.info("Currently there are %s switches and %s links" %(str(activeSwitches), str(links)))
-
- main.step("Kill Link between s3 and s28")
- main.Mininet1.link(END1="s3",END2="s28",OPTION="down")
- time.sleep(link_sleep)
- topology_output = main.ONOS2.topology()
- Link_Down = main.ONOS1.check_status(topology_output,activeSwitches,str(int(links)-2))
- if Link_Down == main.TRUE:
- main.log.report("Link Down discovered properly")
- utilities.assert_equals(expect=main.TRUE,actual=Link_Down,
- onpass="Link Down discovered properly",
- onfail="Link down was not discovered in "+ str(link_sleep) + " seconds")
-
- main.step("Bring link between s3 and s28 back up")
- Link_Up = main.Mininet1.link(END1="s3",END2="s28",OPTION="up")
- time.sleep(link_sleep)
- topology_output = main.ONOS2.topology()
- Link_Up = main.ONOS1.check_status(topology_output,activeSwitches,str(links))
- if Link_Up == main.TRUE:
- main.log.report("Link up discovered properly")
- utilities.assert_equals(expect=main.TRUE,actual=Link_Up,
- onpass="Link up discovered properly",
- onfail="Link up was not discovered in "+ str(link_sleep) + " seconds")
-
-
-
-
- main.step("Compare ONOS Topology to MN Topology")
- Topo = TestONTopology(main.Mininet1, ctrls) # can also add Intent API info for intent operations
- MNTopo = Topo
- Topology_Check = main.TRUE
- devices_json = main.ONOS2.devices()
- links_json = main.ONOS2.links()
- ports_json = main.ONOS2.ports()
- print "devices_json= ", devices_json
-
- result1 = main.Mininet1.compare_switches(MNTopo, json.loads(devices_json))
- print "***********************"
- result2 = main.Mininet1.compare_links(MNTopo, json.loads(links_json))
- print "***********************"
- result3 = main.Mininet1.compare_ports(MNTopo, json.loads(ports_json))
-
- result = result1 and result2 and result3
- print "***********************"
- if result == main.TRUE:
- main.log.report("ONOS"+ " Topology matches MN Topology")
- utilities.assert_equals(expect=main.TRUE,actual=result,
- onpass="ONOS" + " Topology matches MN Topology",
- onfail="ONOS" + " Topology does not match MN Topology")
- Topology_Check = Topology_Check and result
- utilities.assert_equals(expect=main.TRUE,actual=Topology_Check,
- onpass="Topology checks passed", onfail="Topology checks failed")
-
- result = Link_Down and Link_Up and Topology_Check
- utilities.assert_equals(expect=main.TRUE,actual=result,
- onpass="Link failure is discovered correctly",
- onfail="Link Discovery failed")
-
-
-
diff --git a/TestON/tests/FuncNext/FuncNext.topo b/TestON/tests/FuncNext/FuncNext.topo
deleted file mode 100755
index 444c605..0000000
--- a/TestON/tests/FuncNext/FuncNext.topo
+++ /dev/null
@@ -1,61 +0,0 @@
-<TOPOLOGY>
- <COMPONENT>
-
- <ONOSbench>
- <host>10.128.60.10</host>
- <user>admin</user>
- <password>onos_test</password>
- <type>OnosDriver</type>
- <connect_order>1</connect_order>
- <COMPONENTS> </COMPONENTS>
- </ONOSbench>
-
- <ONOS1>
- <host>10.128.60.10</host>
- <user>sdn</user>
- <password>sdn</password>
- <type>OnosDriver</type>
- <connect_order>2</connect_order>
- <COMPONENTS> </COMPONENTS>
- </ONOS1>
-
- <ONOS2>
- <host>10.128.60.10</host>
- <user>admin</user>
- <password>onos_test</password>
- <type>OnosCliDriver</type>
- <connect_order>3</connect_order>
- <COMPONENTS> </COMPONENTS>
- </ONOS2>
-
- <Mininet1>
- <host>10.128.9.10</host>
- <user>admin</user>
- <password>onos_test</password>
- <type>MininetCliDriver</type>
- <connect_order>4</connect_order>
- <COMPONENTS>
- #Specify the Option for mininet
- <arg1> --custom ~/mininet/custom/topo-HA.py </arg1>
- <arg2> --topo mytopo </arg2>
- <arg3> --switch ovs,protocols=OpenFlow10 </arg3>
- <controller> remote </controller>
- </COMPONENTS>
- </Mininet1>
-
- <Mininet2>
- <host>10.128.9.10</host>
- <user>admin</user>
- <password>onos_test</password>
- <type>RemoteMininetDriver</type>
- <connect_order>5</connect_order>
- <COMPONENTS>
- #Specify the Option for mininet
- <arg1> --custom ~/mininet/custom/topo-HA.py </arg1>
- <arg2> --topo mytopo </arg2>
- <arg3> --switch ovs,protocols=OpenFlow10 </arg3>
- <controller> remote </controller>
- </COMPONENTS>
- </Mininet2>
- </COMPONENT>
-</TOPOLOGY>
diff --git a/TestON/tests/FuncNext/__init__.py b/TestON/tests/FuncNext/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/TestON/tests/FuncNext/__init__.py
+++ /dev/null
diff --git a/TestON/tests/HPSwitchTest/HPSwitchTest.params b/TestON/tests/HPSwitchTest/HPSwitchTest.params
deleted file mode 100644
index 92a5b20..0000000
--- a/TestON/tests/HPSwitchTest/HPSwitchTest.params
+++ /dev/null
@@ -1,4 +0,0 @@
-<PARAMS>
- <testcases> [1]</testcases>
- <mail> anil4haart@gmail.com,paxweb@paxterrasolutions.com</mail>
-</PARAMS>
\ No newline at end of file
diff --git a/TestON/tests/HPSwitchTest/HPSwitchTest.py b/TestON/tests/HPSwitchTest/HPSwitchTest.py
deleted file mode 100644
index 9e2e4e7..0000000
--- a/TestON/tests/HPSwitchTest/HPSwitchTest.py
+++ /dev/null
@@ -1,23 +0,0 @@
-'''
-
- * TestON is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
-
- * TestON is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
-
-
-'''
-class HPSwitchTest :
-
- def __init__(self) :
- self.default = ''
-
- def CASE1(self,main) :
-
- main.case("HPSwitchTest Sample Test")
- main.step("HPSwitchTest Sample Test")
diff --git a/TestON/tests/HPSwitchTest/HPSwitchTest.topo b/TestON/tests/HPSwitchTest/HPSwitchTest.topo
deleted file mode 100644
index c6ad886..0000000
--- a/TestON/tests/HPSwitchTest/HPSwitchTest.topo
+++ /dev/null
@@ -1,14 +0,0 @@
-<TOPOLOGY>
-
- <COMPONENT>
- <HPSwitch>
- <host>24.6.49.222</host>
- <user> Paxterra </user>
- <port> 6500 </port>
- <password></password>
- <type>RemoteSysDriver</type>
- <COMPONENTS>
- </COMPONENTS>
- </HPSwitch>
- </COMPONENT>
-</TOPOLOGY>
diff --git a/TestON/tests/HPSwitchTest/__init__.py b/TestON/tests/HPSwitchTest/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/TestON/tests/HPSwitchTest/__init__.py
+++ /dev/null
diff --git a/TestON/tests/MininetSlicing/MininetSlicing.ospk b/TestON/tests/MininetSlicing/MininetSlicing.ospk
deleted file mode 100644
index 8e2f32f..0000000
--- a/TestON/tests/MininetSlicing/MininetSlicing.ospk
+++ /dev/null
@@ -1,64 +0,0 @@
-CASE 1
- NAME "Verifying 'SSH protocol' based slicing"
-
- STEP "Deleting flowspace using 'removeFlowSpace'"
- STORE ON FlowVisor1 DO removeFlowSpace USING "all" IN removeflowspace_result
- ASSERT removeflowspace_result EQUALS main.TRUE ONPASS "Removed FlowSpace Successfully" ONFAIL "Failed to remove FlowSpace"
-
- STEP "Showing connected devices using 'listDevices'"
- STORE ON FlowVisor1 DO listDevices IN listdevices_result
- ASSERT listdevices_result EQUALS main.TRUE ONPASS "Listed devices Successfully" ONFAIL "Failed to list the devices"
-
- STEP "Verifying hosts reachability through ICMP traffic"
- STORE ON Mininet1 DO pingHost USING src AS 'h1',target AS 'h4' IN ping_result
- ASSERT ping_result EQUALS main.TRUE ONPASS "NO PACKET LOSS, HOST IS REACHABLE" ONFAIL "PACKET LOST, HOST IS NOT REACHABLE"
-
- STEP "Showing the flowSpace USING 'listFlowSpace'"
- STORE ON FlowVisor1 DO listFlowSpace IN listflowspace_result
- STORE ON Mininet1 DO pingHost USING src AS 'h1',target AS 'h4' IN ping_result
- ASSERT main.TRUE EQUALS main.TRUE ONPASS "Listed FlowSpace" ONFAIL "Failed to list the FlowSpace"
-
- STEP "Adding FlowSpace to create the slice of the Network"
- INFO " Geeting the IP-Addresses of Hosts"
- STORE ON Mininet1 DO getIPAddress USING 'h1' IN h1_ipaddress
- STORE ON Mininet1 DO getIPAddress USING 'h4' IN h4_ipaddress
-
- INFO " Geeting the MAC-Addresses of Hosts"
- STORE ON Mininet1 DO getMacAddress USING 'h1' IN h1_macaddress
- STORE ON Mininet1 DO getMacAddress USING 'h4' IN h4_macaddress
-
- STORE ON FlowVisor1 DO addFlowSpace USING dl_src AS h1_macaddress,nw_dst AS h4_ipaddress IN addflowspace_result_1
- ASSERT addflowspace_result_1 EQUALS main.TRUE ONPASS "Added FlowSpace Successfully" ONFAIL "Failed to add FlowSpace"
-
- STORE ON FlowVisor1 DO addFlowSpace USING dl_src AS h4_macaddress,nw_dst AS h1_ipaddress IN addflowspace_result_2
- ASSERT addflowspace_result_2 EQUALS main.TRUE ONPASS "Added FlowSpace Successfully" ONFAIL "Failed to add FlowSpace"
-
- STORE ON FlowVisor1 DO addFlowSpace USING nw_src AS h1_ipaddress IN addflowspace_result_3
- STORE ON FlowVisor1 DO addFlowSpace USING nw_src AS h4_ipaddress IN addflowspace_result_3
-
- STORE ON FlowVisor1 DO addFlowSpace USING nw_src AS h1_ipaddress, tp_dst AS '22' IN addflowspace_result_3
- ASSERT addflowspace_result_3 EQUALS main.TRUE ONPASS "Added FlowSpace Successfully" ONFAIL "Failed to add FlowSpace"
-
- STORE ON FlowVisor1 DO addFlowSpace USING nw_src AS h4_ipaddress,tp_dst AS '22' IN addflowspace_result_4
- ASSERT addflowspace_result_4 EQUALS main.TRUE ONPASS "Added FlowSpace Successfully" ONFAIL "Failed to add FlowSpace"
-
- STORE ON FlowVisor1 DO addFlowSpace USING nw_src AS h1_ipaddress,tp_src AS '22' IN addflowspace_result_5
- ASSERT addflowspace_result_5 EQUALS main.TRUE ONPASS "Added FlowSpace Successfully" ONFAIL "Failed to add FlowSpace"
-
- STORE ON FlowVisor1 DO addFlowSpace USING nw_src AS h4_ipaddress,tp_src AS '22' IN addflowspace_result_6
- ASSERT addflowspace_result_6 EQUALS main.TRUE ONPASS "Added FlowSpace Successfully" ONFAIL "Failed to add FlowSpace"
-
- INFO "Showing the flowSpace USING 'listFlowSpace'"
- STORE ON FlowVisor1 DO listFlowSpace IN listflowspace_result
-
- STEP "Verifying hosts reachability through ICMP traffic and Connectivity through SSH service"
- STORE ON Mininet1 DO pingHost USING src AS 'h1',target AS 'h4' IN ping_result
- ASSERT ping_result EQUALS main.TRUE ONPASS "NO PACKET LOSS, HOST IS REACHABLE" ONFAIL "PACKET LOST, HOST IS NOT REACHABLE"
-
- STORE ON Mininet1 DO verifySSH USING user_name AS CASE['destination_username'],ip_address AS CASE['destination_host'], pwd AS CASE['destination_password'], port AS CASE['destination_port'] IN ssh_result
- ASSERT ssh_result EQUALS main.TRUE ONPASS "Failed to connect remote host throgh SSH" ONFAIL "Remote host connected throgh SSH "
-
-
-
-
-
diff --git a/TestON/tests/MininetSlicing/MininetSlicing.params b/TestON/tests/MininetSlicing/MininetSlicing.params
deleted file mode 100644
index c18e650..0000000
--- a/TestON/tests/MininetSlicing/MininetSlicing.params
+++ /dev/null
@@ -1,18 +0,0 @@
-<PARAMS>
- <testcases> 1</testcases>
- <mail> paxweb@paxterrasolutions.com</mail>
- <CASE1>
-
- <dl_type> 0x800 </dl_type>
- <nw_proto> 6 </nw_proto>
- <nw_src> 10.0.0.2 </nw_src>
- <tp_dst> 22 </tp_dst>
- <slice> SSH </slice>
- <permissions> 4 </permissions>
-
- <destination_host> 10.0.0.4 </destination_host>
- <destination_username> openflow </destination_username>
- <destination_password> openflow </destination_password>
- <destination_port> 22 </destination_port>
- </CASE1>
-</PARAMS>
\ No newline at end of file
diff --git a/TestON/tests/MininetSlicing/MininetSlicing.py b/TestON/tests/MininetSlicing/MininetSlicing.py
deleted file mode 100644
index 86b3ddc..0000000
--- a/TestON/tests/MininetSlicing/MininetSlicing.py
+++ /dev/null
@@ -1,71 +0,0 @@
-
-class MininetSlicing :
-
- def __init__(self) :
- self.default = ''
-
- def CASE1(self,main) :
-
- main.case("Verifying 'SSH protocol' based slicing")
-
- main.step("Deleting flowspace using 'removeFlowSpace'")
- removeflowspace_result = main.FlowVisor1.removeFlowSpace("all")
- utilities.assert_equals(expect=main.TRUE,actual=removeflowspace_result,onpass="Removed FlowSpace Successfully",onfail="Failed to remove FlowSpace")
-
- main.step("Showing connected devices using 'listDevices'")
- listdevices_result = main.FlowVisor1.listDevices()
- utilities.assert_equals(expect=main.TRUE,actual=listdevices_result,onpass="Listed devices Successfully",onfail="Failed to list the devices")
-
- main.step("Verifying hosts reachability through ICMP traffic")
- ping_result = main.Mininet1.pingHost(src='h1',target='h4')
- utilities.assert_equals(expect=main.TRUE,actual=ping_result,onpass="NO PACKET LOSS, HOST IS REACHABLE",onfail="PACKET LOST, HOST IS NOT REACHABLE")
-
- main.step("Showing the flowSpace USING 'listFlowSpace'")
- listflowspace_result = main.FlowVisor1.listFlowSpace()
- ping_result = main.Mininet1.pingHost(src='h1',target='h4')
-
-
- main.step("Adding FlowSpace to create the slice of the Network")
- main.log.info(" Geeting the IP-Addresses of Hosts")
- h1_ipaddress = main.Mininet1.getIPAddress('h1')
- h4_ipaddress = main.Mininet1.getIPAddress('h4')
-
- main.log.info(" Geeting the MAC-Addresses of Hosts" )
- h1_macaddress = main.Mininet1.getMacAddress('h1')
- h4_macaddress = main.Mininet1.getMacAddress('h4')
-
- addflowspace_result_1 = main.FlowVisor1.addFlowSpace(dl_src=h1_macaddress,nw_dst=h4_ipaddress)
- utilities.assert_equals(expect=main.TRUE,actual=addflowspace_result_1,onpass="Added FlowSpace Successfully",onfail="Failed to add FlowSpace")
-
- addflowspace_result_2 = main.FlowVisor1.addFlowSpace(dl_src=h4_macaddress,nw_dst=h1_ipaddress)
- utilities.assert_equals(expect=main.TRUE,actual=addflowspace_result_2,onpass="Added FlowSpace Successfully",onfail="Failed to add FlowSpace")
-
- addflowspace_result_3 = main.FlowVisor1.addFlowSpace(nw_src=h1_ipaddress)
- addflowspace_result_3 = main.FlowVisor1.addFlowSpace(nw_src=h4_ipaddress)
-
- addflowspace_result_3 = main.FlowVisor1.addFlowSpace(nw_src=h1_ipaddress, tp_dst='22')
- utilities.assert_equals(expect=main.TRUE,actual=addflowspace_result_3,onpass="Added FlowSpace Successfully",onfail="Failed to add FlowSpace")
-
- addflowspace_result_4 = main.FlowVisor1.addFlowSpace(nw_src=h4_ipaddress,tp_dst='22')
- utilities.assert_equals(expect=main.TRUE,actual=addflowspace_result_4,onpass="Added FlowSpace Successfully",onfail="Failed to add FlowSpace")
-
- addflowspace_result_5 = main.FlowVisor1.addFlowSpace(nw_src=h1_ipaddress,tp_src='22')
- utilities.assert_equals(expect=main.TRUE,actual=addflowspace_result_5,onpass="Added FlowSpace Successfully",onfail="Failed to add FlowSpace")
-
- addflowspace_result_6 = main.FlowVisor1.addFlowSpace(nw_src=h4_ipaddress,tp_src='22')
- utilities.assert_equals(expect=main.TRUE,actual=addflowspace_result_6,onpass="Added FlowSpace Successfully",onfail="Failed to add FlowSpace")
-
- main.log.info("Showing the flowSpace USING 'listFlowSpace'")
- listflowspace_result = main.FlowVisor1.listFlowSpace()
-
- main.step("Verifying hosts reachability through ICMP traffic and Connectivity through SSH service")
- ping_result = main.Mininet1.pingHost(src='h1',target='h4')
- utilities.assert_equals(expect=main.TRUE,actual=ping_result,onpass="NO PACKET LOSS, HOST IS REACHABLE",onfail="PACKET LOST, HOST IS NOT REACHABLE")
-
- ssh_result = main.Mininet1.verifySSH(user_name=main.params['CASE1']['destination_username'],ip_address=main.params['CASE1']['destination_host'], pwd=main.params['CASE1']['destination_password'], port=main.params['CASE1']['destination_port'])
- utilities.assert_equals(expect=main.TRUE,actual=ssh_result,onpass="Failed to connect remote host throgh SSH",onfail="Remote host connected throgh SSH ")
-
-
-
-
-
\ No newline at end of file
diff --git a/TestON/tests/MininetSlicing/MininetSlicing.topo b/TestON/tests/MininetSlicing/MininetSlicing.topo
deleted file mode 100644
index 7a181d7..0000000
--- a/TestON/tests/MininetSlicing/MininetSlicing.topo
+++ /dev/null
@@ -1,43 +0,0 @@
-<TOPOLOGY>
- <COMPONENT>
- <FlowVisor1>
- <host>192.168.56.101</host>
- <user> openflow </user>
- <fvadmin_pwd></fvadmin_pwd>
- <password>openflow</password>
- <type>FlowVisorDriver</type>
- <COMPONENTS>
- </COMPONENTS>
-
- </FlowVisor1>
-
- <Mininet1>
- <host>192.168.56.101</host>
- <user> openflow</user>
- <password> openflow</password>
- <type>MininetCliDriver</type>
- <COMPONENTS>
- # Specify the Option for mininet
- <topo> single</topo>
- <topocount>3</topocount>
- <switch> ovsk </switch>
- <controller> remote </controller>
- </COMPONENTS>
- </Mininet1>
-
- <POX2>
- <host> 192.168.56.102 </host>
- <user> openflow </user>
- <password> openflow </password>
- <type> PoxCliDriver </type>
- <test_target> 1 </test_target>
- <COMPONENTS>
- <pox_lib_location> /home/openflow/pox/ </pox_lib_location>
- <samples.of_tutorial></samples.of_tutorial>
- </COMPONENTS>
- </POX2>
-
-
- </COMPONENT>
-
-</TOPOLOGY>
\ No newline at end of file
diff --git a/TestON/tests/MininetSlicing/__init__.py b/TestON/tests/MininetSlicing/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/TestON/tests/MininetSlicing/__init__.py
+++ /dev/null
diff --git a/TestON/tests/MininetTest/MininetTest.params b/TestON/tests/MininetTest/MininetTest.params
deleted file mode 100644
index 0f798b1..0000000
--- a/TestON/tests/MininetTest/MininetTest.params
+++ /dev/null
@@ -1,23 +0,0 @@
-<PARAMS>
- <testcases>[1,2]</testcases>
- <mail>anilkumar.s@paxterrasolutions.com,raghavkashyap@paxterrasolutions.com</mail>
- <CASE1>
- <destination> h2</destination>
- <STEP1>
- <host> h2 </host>
- </STEP1>
- </CASE1>
- <SET1>
- <begin>
- <one>s1</one>
- <two>s1</two>
- <three>s3</three>
- </begin>
- <end>
- <one>s2</one>
- <two>s3</two>
- <three>s4</three>
- </end>
- </SET1>
-
-</PARAMS>
diff --git a/TestON/tests/MininetTest/MininetTest.py b/TestON/tests/MininetTest/MininetTest.py
deleted file mode 100644
index 72fab6e..0000000
--- a/TestON/tests/MininetTest/MininetTest.py
+++ /dev/null
@@ -1,24 +0,0 @@
-
-class MininetTest :
-
- def __init__(self) :
- self.default = ''
-
- def CASE1(self,main) :
-
- main.case("Testing the configuration of the host")
- main.step("Host IP Checking using checkIP")
- main.ONOS1.start()
- result = main.Mininet1.checkIP(main.params['CASE1']['destination'])
- main.step("Verifying the result")
- utilities.assert_equals(expect=main.TRUE,actual=result,onpass="Host h2 IP address configured",onfail="Host h2 IP address didn't configured")
-
- def CASE2(self,main) :
-
- main.case("Testing Reachabilty of all the hosts")
- main.step("Checking Hosts reachability by using pingall")
- result = main.Mininet1.pingall()
- main.step("Verifying the result")
- for source in main.params['SET1']['begin']:
- main.log.info(str(main.params['SET1']['begin'][source]))
- utilities.assert_equals(expect=main.TRUE,actual=result,onpass="All hosts are reacchable",onfail="Hosts are not reachable")
diff --git a/TestON/tests/MininetTest/MininetTest.topo b/TestON/tests/MininetTest/MininetTest.topo
deleted file mode 100644
index 21d54de..0000000
--- a/TestON/tests/MininetTest/MininetTest.topo
+++ /dev/null
@@ -1,81 +0,0 @@
-<TOPOLOGY>
- <COMPONENT>
- <Zookeeper1>
- <host>10.128.100.1</host>
- <user>admin</user>
- <password></password>
- <type>ZookeeperCliDriver</type>
- <connect_order>1</connect_order>
- </Zookeeper1>
-
- <Cassandra1>
- <host>10.128.100.1</host>
- <user>admin</user>
- <password></password>
- <type>CassandraCliDriver</type>
- <connect_order>2</connect_order>
- </Cassandra1>
- <Cassandra2>
- <host>10.128.100.4</host>
- <user>admin</user>
- <password></password>
- <type>CassandraCliDriver</type>
- <connect_order>3</connect_order>
- </Cassandra2>
- <Cassandra3>
- <host>10.128.100.5</host>
- <user>admin</user>
- <password></password>
- <type>CassandraCliDriver</type>
- <connect_order>4</connect_order>
- </Cassandra3>
- <Cassandra4>
- <host>10.128.100.6</host>
- <user>admin</user>
- <password></password>
- <type>CassandraCliDriver</type>
- <connect_order>5</connect_order>
- </Cassandra4>
-
- <ONOS1>
- <host>10.128.100.1</host>
- <user>admin</user>
- <password></password>
- <type>OnosCliDriver</type>
- <connect_order>6</connect_order>
- </ONOS1>
- <ONOS2>
- <host>10.128.100.4</host>
- <user>admin</user>
- <password></password>
- <type>OnosCliDriver</type>
- <connect_order>7</connect_order>
- </ONOS2>
- <ONOS3>
- <host>10.128.100.5</host>
- <user>admin</user>
- <password></password>
- <type>OnosCliDriver</type>
- <connect_order>8</connect_order>
- </ONOS3>
- <ONOS4>
- <host>10.128.100.6</host>
- <user>admin</user>
- <password></password>
- <type>OnosCliDriver</type>
- <connect_order>9</connect_order>
- </ONOS4>
- <Mininet1>
- <host>10.128.100.11</host>
- <user>admin</user>
- <password></password>
- <type>MininetCliDriver</type>
- <COMPONENTS>
- # Specify the Option for mininet
- <arg1> </arg1>
- <arg2> </arg2>
- <controller> none </controller>
- </COMPONENTS>
- </Mininet1>
- </COMPONENT>
-</TOPOLOGY>
diff --git a/TestON/tests/MininetTest/__init__.py b/TestON/tests/MininetTest/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/TestON/tests/MininetTest/__init__.py
+++ /dev/null
diff --git a/TestON/tests/ONOSNextTest/ONOSNextTest.params b/TestON/tests/ONOSNextTest/ONOSNextTest.params
deleted file mode 100755
index d600eae..0000000
--- a/TestON/tests/ONOSNextTest/ONOSNextTest.params
+++ /dev/null
@@ -1,20 +0,0 @@
-<PARAMS>
-
- <testcases>1,5</testcases>
-
- #Environment variables
- <ENV>
- <cellName>driver_test</cellName>
- </ENV>
-
- <CTRL>
- <ip1>10.128.174.1</ip1>
- <port1>6633</port1>
- </CTRL>
-
- <GIT>
- <autoPull>off</autoPull>
- <checkout>master</checkout>
- </GIT>
-
-</PARAMS>
diff --git a/TestON/tests/ONOSNextTest/ONOSNextTest.py b/TestON/tests/ONOSNextTest/ONOSNextTest.py
deleted file mode 100755
index 3496771..0000000
--- a/TestON/tests/ONOSNextTest/ONOSNextTest.py
+++ /dev/null
@@ -1,335 +0,0 @@
-
-#Testing the basic functionality of ONOS Next
-#For sanity and driver functionality excercises only.
-
-import time
-import sys
-import os
-import re
-
-class ONOSNextTest:
- def __init__(self):
- self.default = ''
-
- def CASE1(self, main):
- '''
- Startup sequence:
- git pull
- mvn clean install
- onos-package
- cell <name>
- onos-verify-cell
- onos-install -f
- onos-wait-for-start
- '''
- import time
-
- cell_name = main.params['ENV']['cellName']
-
- ONOS1_ip = main.params['CTRL']['ip1']
- ONOS1_port = main.params['CTRL']['port1']
-
- git_pull_trigger = main.params['GIT']['autoPull']
- git_checkout_branch = main.params['GIT']['checkout']
-
- main.case("Setting up test environment")
-
- main.step("Creating cell file")
- #params: (bench ip, cell name, mininet ip, *onos ips)
- cell_file_result = main.ONOSbench.create_cell_file(
- "10.128.20.10", "temp_cell_2", "10.128.10.90",
- "onos-core-trivial,onos-app-fwd",
- "10.128.174.1")
-
- main.step("Applying cell variable to environment")
- #cell_result = main.ONOSbench.set_cell(cell_name)
- cell_result = main.ONOSbench.set_cell("temp_cell_2")
- verify_result = main.ONOSbench.verify_cell()
-
- if git_pull_trigger == 'on':
- main.step("Git checkout and pull master")
- main.ONOSbench.git_checkout(git_checkout_branch)
- git_pull_result = main.ONOSbench.git_pull()
- else:
- main.log.info("Git checkout and pull skipped by config")
- git_pull_result = main.TRUE
-
- main.step("Using mvn clean & install")
- #clean_install_result = main.ONOSbench.clean_install()
- clean_install_result = main.TRUE
-
- main.step("Creating ONOS package")
- package_result = main.ONOSbench.onos_package()
-
- main.step("Installing ONOS package")
- onos_install_result = main.ONOSbench.onos_install()
- onos1_isup = main.ONOSbench.isup()
-
- main.step("Starting ONOS service")
- start_result = main.ONOSbench.onos_start(ONOS1_ip)
-
- case1_result = (clean_install_result and package_result and\
- cell_result and verify_result and onos_install_result and\
- onos1_isup and start_result )
- utilities.assert_equals(expect=main.TRUE, actual=case1_result,
- onpass="Test startup successful",
- onfail="Test startup NOT successful")
-
- time.sleep(10)
-
- def CASE11(self, main):
- '''
- Cleanup sequence:
- onos-service <node_ip> stop
- onos-uninstall
-
- TODO: Define rest of cleanup
-
- '''
-
- ONOS1_ip = main.params['CTRL']['ip1']
-
- main.case("Cleaning up test environment")
-
- main.step("Testing ONOS kill function")
- kill_result = main.ONOSbench.onos_kill(ONOS1_ip)
-
- main.step("Stopping ONOS service")
- stop_result = main.ONOSbench.onos_stop(ONOS1_ip)
-
- main.step("Uninstalling ONOS service")
- uninstall_result = main.ONOSbench.onos_uninstall()
-
- def CASE3(self, main):
- '''
- Test 'onos' command and its functionality in driver
- '''
-
- ONOS1_ip = main.params['CTRL']['ip1']
-
- main.case("Testing 'onos' command")
-
- main.step("Sending command 'onos -w <onos-ip> system:name'")
- cmdstr1 = "system:name"
- cmd_result1 = main.ONOSbench.onos_cli(ONOS1_ip, cmdstr1)
- main.log.info("onos command returned: "+cmd_result1)
-
- main.step("Sending command 'onos -w <onos-ip> onos:topology'")
- cmdstr2 = "onos:topology"
- cmd_result2 = main.ONOSbench.onos_cli(ONOS1_ip, cmdstr2)
- main.log.info("onos command returned: "+cmd_result2)
-
- main.step("Testing check_status")
- check_status_results = main.ONOSbench.check_status(ONOS1_ip, 4, 6)
- main.log.info("Results of check_status " + str(check_status_results))
-
- main.step("Sending command 'onos -w <onos-ip> bundle:list'")
- cmdstr3 = "bundle:list"
- cmd_result3 = main.ONOSbench.onos_cli(ONOS1_ip, cmdstr3)
- main.log.info("onos command returned: "+cmd_result3)
- case3_result = (cmd_result1 and cmd_result2 and\
- check_status_results and cmd_result3 )
- utilities.assert_equals(expect=main.TRUE, actual=case3_result,
- onpass="Test case 3 successful",
- onfail="Test case 3 NOT successful")
-
- def CASE4(self, main):
- import re
- import time
- main.case("Pingall Test(No intents are added)")
- main.step("Assigning switches to controllers")
- for i in range(1,5): #1 to (num of switches +1)
- main.Mininet1.assign_sw_controller(sw=str(i),
- ip1=ONOS1_ip, port1=ONOS1_port)
- switch_mastership = main.TRUE
- for i in range (1,5):
- response = main.Mininet1.get_sw_controller("s"+str(i))
- print("Response is " + str(response))
- if re.search("tcp:"+ONOS1_ip,response):
- switch_mastership = switch_mastership and main.TRUE
- else:
- switch_mastership = main.FALSE
-
- #REACTIVE FWD test
- main.step("Pingall")
- ping_result = main.FALSE
- while ping_result == main.FALSE:
- time1 = time.time()
- ping_result = main.Mininet1.pingall()
- time2 = time.time()
- print "Time for pingall: %2f seconds" % (time2 - time1)
-
- case4_result = switch_mastership and ping_result
- utilities.assert_equals(expect=main.TRUE, actual=case4_result,
- onpass="Pingall Test successful",
- onfail="Pingall Test NOT successful")
-
- def CASE5(self, main):
- '''
- Test the ONOS-cli functionality
-
- Below are demonstrations of what the
- ONOS cli driver functions can be used for.
- '''
- import time
- import json
-
- cell_name = main.params['ENV']['cellName']
- ONOS1_ip = main.params['CTRL']['ip1']
-
- main.case("Testing the ONOS-cli")
-
- main.step("Set cell for ONOS-cli environment")
- #main.ONOScli.set_cell(cell_name)
- main.ONOScli.set_cell("temp_cell_2")
-
- main.step("Start ONOS-cli")
- main.ONOScli.start_onos_cli(ONOS1_ip)
-
- main.step("issue command: onos:topology")
- topology_obj = main.ONOScli.topology()
-
- main.step("issue various feature:install <str> commands")
- #main.ONOScli.feature_install("onos-app-fwd")
- #main.ONOScli.feature_install("onos-rest")
-
- main.step("Add a bad node")
- node_result = main.ONOScli.add_node("111", "10.128.20.")
- if node_result == main.TRUE:
- main.log.info("Node successfully added")
-
- main.step("Add a correct node")
- node_result = main.ONOScli.add_node("111", "10.128.174.2")
-
- main.step("Assign switches and list devices")
- for i in range(1,8):
- main.Mininet2.handle.sendline("sh ovs-vsctl set-controller s"+str(i)+
- " tcp:10.128.174.1")
- main.Mininet2.handle.expect("mininet>")
- #Need to sleep to allow switch add processing
- time.sleep(5)
- list_result = main.ONOScli.devices(json_format=False)
- main.log.info(list_result)
-
- main.step("Get all devices id")
- devices_id_list = main.ONOScli.get_all_devices_id()
- main.log.info(devices_id_list)
-
- main.step("Get path and cost between device 1 and 7")
- (path, cost) = main.ONOScli.paths(devices_id_list[0], devices_id_list[6])
- main.log.info("Path: "+str(path))
- main.log.info("Cost: "+str(cost))
-
- main.step("Get nodes currently visible")
- nodes_str = main.ONOScli.nodes()
- main.log.info(nodes_str)
-
- main.step("Get all nodes id's")
- node_id_list = main.ONOScli.get_all_nodes_id()
- main.log.info(node_id_list)
-
- main.step("Set device "+str(devices_id_list[0])+" to role: standby")
- device_role_result = main.ONOScli.device_role(
- devices_id_list[0], node_id_list[0], "standby")
- if device_role_result == main.TRUE:
- main.log.report("Device role successfully set")
-
- main.step("Revert device role to master")
- device_role = main.ONOScli.device_role(
- devices_id_list[0], node_id_list[0], "master")
-
- main.step("Check devices / role again")
- dev_result = main.ONOScli.devices(json_format=False)
- main.log.info(dev_result)
-
- #Sample steps to push intents ***********
- # * Obtain host id in ONOS format
- # * Push intents
- main.step("Get list of hosts from Mininet")
- host_list = main.Mininet2.get_hosts()
- main.log.info(host_list)
-
- main.step("Get host list in ONOS format")
- host_onos_list = main.ONOScli.get_hosts_id(host_list)
- main.log.info(host_onos_list)
-
- time.sleep(5)
-
- #We must use ping from hosts we want to add intents from
- #to make the hosts talk
- #main.Mininet2.handle.sendline("\r")
- #main.Mininet2.handle.sendline("h4 ping 10.1.1.1 -c 1 -W 1")
- #time.sleep(3)
- #main.Mininet2.handle.sendline("h5 ping 10.1.1.1 -c 1 -W 1")
- #time.sleep(5)
-
- main.ONOScli.feature_install("onos-app-fwd")
-
- main.Mininet2.pingall()
-
- time.sleep(5)
-
- main.step("Get hosts")
- main.ONOScli.handle.sendline("hosts")
- main.ONOScli.handle.expect("onos>")
- hosts = main.ONOScli.handle.before
- main.log.info(hosts)
-
- main.step("Install host-to-host-intents")
- intent_install1 = main.ONOScli.add_host_intent(
- host_onos_list[0], host_onos_list[1])
- intent_install2 = main.ONOScli.add_host_intent(
- host_onos_list[2], host_onos_list[3])
- intent_install3 = main.ONOScli.add_host_intent(
- host_onos_list[4], host_onos_list[5])
-
- main.log.info(intent_install1)
- main.log.info(intent_install2)
- main.log.info(intent_install3)
-
- main.step("Get intents installed on ONOS")
- get_intent_result = main.ONOScli.intents()
- main.log.info(get_intent_result)
- #****************************************
-
- #Sample steps to delete intents ********
- main.step("Get all intent id's")
- intent_id = main.ONOScli.get_all_intents_id()
- main.log.info(intent_id)
-
- main.step("Remove specified intent id: "+str(intent_id[0]))
- intent_result = main.ONOScli.remove_intent(intent_id[0])
- main.log.info(intent_result)
-
- main.step("Check installed intents again")
- get_intent_result = main.ONOScli.intents()
- main.log.info(get_intent_result)
- #***************************************
-
- #Sample steps to add point-to-point intents*
- main.step("Add point-to-point intents")
- ptp_intent_result = main.ONOScli.add_point_intent(
- devices_id_list[0], 1, devices_id_list[1], 2)
- if ptp_intent_result == main.TRUE:
- get_intent_result = main.ONOScli.intents()
- main.log.info("Point to point intent install successful")
- main.log.info(get_intent_result)
- #*******************************************
-
- main.step("Print intents in json format")
- intents = main.ONOScli.intents(json_format = True)
- main.log.info(intents)
-
- main.step("Add eth options in point-to-point intent")
- ptp_eth = main.ONOScli.add_point_intent(
- devices_id_list[2], 1, devices_id_list[3], 2,
- ethSrc = "00:02", ethDst = "00:03")
- main.log.info(ptp_eth)
-
- main.step("Print intents with eth options")
- intents = main.ONOScli.intents()
- main.log.info(intents)
-######
-#jhall@onlab.us
-#andrew@onlab.us
-######
diff --git a/TestON/tests/ONOSNextTest/ONOSNextTest.topo b/TestON/tests/ONOSNextTest/ONOSNextTest.topo
deleted file mode 100755
index 0c84cc7..0000000
--- a/TestON/tests/ONOSNextTest/ONOSNextTest.topo
+++ /dev/null
@@ -1,61 +0,0 @@
-<TOPOLOGY>
- <COMPONENT>
-
- <ONOSbench>
- <host>10.128.20.10</host>
- <user>admin</user>
- <password>onos_test</password>
- <type>OnosDriver</type>
- <connect_order>1</connect_order>
- <COMPONENTS> </COMPONENTS>
- </ONOSbench>
-
- <ONOScli>
- <host>10.128.20.10</host>
- <user>admin</user>
- <password>onos_test</password>
- <type>OnosCliDriver</type>
- <connect_order>2</connect_order>
- <COMPONENTS> </COMPONENTS>
- </ONOScli>
-
- <ONOS1>
- <host>10.128.174.1</host>
- <user>sdn</user>
- <password>rocks</password>
- <type>OnosDriver</type>
- <connect_order>3</connect_order>
- <COMPONENTS> </COMPONENTS>
- </ONOS1>
-
- <Mininet1>
- <host>10.128.10.90</host>
- <user>admin</user>
- <password>onos_test</password>
- <type>MininetCliDriver</type>
- <connect_order>4</connect_order>
- <COMPONENTS>
- #Specify the Option for mininet
- <arg1> --topo tree,2,3</arg1>
- <arg2> </arg2>
- <arg3> </arg3>
- <controller> remote </controller>
- </COMPONENTS>
- </Mininet1>
-
- <Mininet2>
- <host>10.128.10.91</host>
- <user>admin</user>
- <password>onos_test</password>
- <type>MininetCliDriver</type>
- <connect_order>5</connect_order>
- <COMPONENTS>
- <arg1> --custom topo-intentTPtest.py </arg1>
- <arg2> --arp --mac</arg2>
- <arg3> --topo mytopo</arg3>
- <controller> remote </controller>
- </COMPONENTS>
- </Mininet2>
-
- </COMPONENT>
-</TOPOLOGY>
diff --git a/TestON/tests/ONOSNextTest/__init__.py b/TestON/tests/ONOSNextTest/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/TestON/tests/ONOSNextTest/__init__.py
+++ /dev/null
diff --git a/TestON/tests/PoxTest/.svn/entries b/TestON/tests/PoxTest/.svn/entries
deleted file mode 100644
index b51d7ac..0000000
--- a/TestON/tests/PoxTest/.svn/entries
+++ /dev/null
@@ -1,171 +0,0 @@
-9
-
-dir
-65
-svn://192.168.150.61/OpenFlow/tests/PoxTest
-svn://192.168.150.61/OpenFlow
-
-
-
-2012-12-05T18:46:42.405397Z
-65
-paxterra
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-8b1d8634-a80c-44fc-ab7b-cc53e6f68013
-
-
-
-
-
-
-0
-
-PoxTest.params
-file
-
-
-
-
-2012-12-05T16:08:24.000000Z
-e79bef68fc6f00acd8bf2028a7e2cab0
-2012-12-05T18:46:42.405397Z
-65
-paxterra
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-326
-
-PoxTest.py
-file
-
-
-
-
-2012-12-05T16:08:24.000000Z
-4a2b2aaeb2a2eeed4b70f1adebca7231
-2012-12-05T18:46:42.405397Z
-65
-paxterra
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-637
-
-PoxTest.topo
-file
-
-
-
-
-2012-12-05T16:08:24.000000Z
-827eb99b5a13c33d371ffc6aca740464
-2012-12-05T18:46:42.405397Z
-65
-paxterra
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-805
-
-__init__.py
-file
-
-
-
-
-2012-12-05T16:08:24.000000Z
-d41d8cd98f00b204e9800998ecf8427e
-2012-12-05T18:46:42.405397Z
-65
-paxterra
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-0
-
diff --git a/TestON/tests/PoxTest/.svn/format b/TestON/tests/PoxTest/.svn/format
deleted file mode 100644
index ec63514..0000000
--- a/TestON/tests/PoxTest/.svn/format
+++ /dev/null
@@ -1 +0,0 @@
-9
diff --git a/TestON/tests/PoxTest/.svn/text-base/PoxTest.params.svn-base b/TestON/tests/PoxTest/.svn/text-base/PoxTest.params.svn-base
deleted file mode 100644
index bbadcaa..0000000
--- a/TestON/tests/PoxTest/.svn/text-base/PoxTest.params.svn-base
+++ /dev/null
@@ -1,12 +0,0 @@
-[PARAMS]
- 'testcases' = '[1]'
- 'mail' = 'anilkumar.s@paxterrasolutions.com,paxweb@paxterrasolutions.com'
- #'log_dir' = '/home/user/Desktop/openflow_logs/'
- [[CASE1]]
- 'destination' = 'h2'
- 'src' = 'h2'
- 'target'= 'h3'
- 'controller' = 'c1'
- [[[STEP1]]]
- 'host' = 'h2'
-
diff --git a/TestON/tests/PoxTest/.svn/text-base/PoxTest.py.svn-base b/TestON/tests/PoxTest/.svn/text-base/PoxTest.py.svn-base
deleted file mode 100644
index 49e63af..0000000
--- a/TestON/tests/PoxTest/.svn/text-base/PoxTest.py.svn-base
+++ /dev/null
@@ -1,15 +0,0 @@
-class PoxTest:
- '''
- Testing Basic Pox Functionalities
- '''
- def __init__(self):
- self.default = ""
-
- def CASE1(self,main):
- main.case("Checking the control flow of POX")
- main.step("Checking the host reachability using pingHost ")
-
- result = main.Mininet1.pingHost(src=main.params['CASE1']['src'],
- target=main.params['CASE1']['target'],
- controller=main.params['CASE1']['controller'])
- utilities.assert_equals(expect=main.TRUE,actual=result,onpass="Ping executed successfully",onfail="Ping Failed")
diff --git a/TestON/tests/PoxTest/.svn/text-base/PoxTest.topo.svn-base b/TestON/tests/PoxTest/.svn/text-base/PoxTest.topo.svn-base
deleted file mode 100644
index b4560cb..0000000
--- a/TestON/tests/PoxTest/.svn/text-base/PoxTest.topo.svn-base
+++ /dev/null
@@ -1,25 +0,0 @@
-[TOPOLOGY]
-
- [[COMPONENT]]
- [[["Mininet1"]]]
- 'host' = '192.168.56.101'
- 'user' = 'openflow'
- 'password' = 'openflow'
- 'type' = "Mininet"
- [[[["COMPONENTS"]]]]
- # Specify the Option for mininet
- 'topo' = 'single'
- 'topocount' = '3'
- 'switch' = 'ovsk'
- 'controller' = 'remote'
- [[["POX2"]]]
- 'host' = '192.168.56.101'
- 'user' = 'openflow'
- 'password' = 'openflow'
- 'type' = 'POX'
- 'test_target' = '1'
- 'no-cli' = '1' #or '0' if want to run in cli mode
- [[[["COMPONENTS"]]]]
- 'pox_lib_location' = "/home/openflow/pox/"
- [[[[["samples.of_tutorial"]]]]]
-
diff --git a/TestON/tests/PoxTest/.svn/text-base/__init__.py.svn-base b/TestON/tests/PoxTest/.svn/text-base/__init__.py.svn-base
deleted file mode 100644
index e69de29..0000000
--- a/TestON/tests/PoxTest/.svn/text-base/__init__.py.svn-base
+++ /dev/null
diff --git a/TestON/tests/PoxTest/PoxTest.ospk b/TestON/tests/PoxTest/PoxTest.ospk
deleted file mode 100644
index cadc43e..0000000
--- a/TestON/tests/PoxTest/PoxTest.ospk
+++ /dev/null
@@ -1,7 +0,0 @@
-CASE 1
- NAME "Checking the control flow of POX"
- STEP "Checking the host reachability using pingHost"
- ON Mininet1 DO pingHost USING src AS CASE["src"], target AS CASE["target"], controller AS CASE["controller"] AND STORE LAST_RESULT IN result
- ASSERT result EQUALS main.TRUE ONPASS "Ping executed successfully" ONFAIL "Ping failed"
-
-
diff --git a/TestON/tests/PoxTest/PoxTest.params b/TestON/tests/PoxTest/PoxTest.params
deleted file mode 100644
index dfff20e..0000000
--- a/TestON/tests/PoxTest/PoxTest.params
+++ /dev/null
@@ -1,13 +0,0 @@
-<PARAMS>
- <testcases> [1]</testcases>
- <mail> anil4haart@gmail.com,paxweb@paxterrasolutions.com</mail>
- <CASE1>
- <destination> h2</destination>
- <src>h2</src>
- <target> h3 </target>
- <controller> c1 </controller>
- <STEP1>
- <host> h2</host>
- </STEP1>
- </CASE1>
-</PARAMS>
diff --git a/TestON/tests/PoxTest/PoxTest.py b/TestON/tests/PoxTest/PoxTest.py
deleted file mode 100644
index f9e4722..0000000
--- a/TestON/tests/PoxTest/PoxTest.py
+++ /dev/null
@@ -1,29 +0,0 @@
-'''
-
- * TestON is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
-
- * TestON is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
-
-
-'''
-
-class PoxTest :
-
- def __init__(self) :
- self.default = ''
-
- def CASE1(self,main) :
-
- main.case("Checking the control flow of POX")
- main.step("Checking the host reachability using pingHost")
- main.Mininet1.pingHost(src=main.params['CASE1']['src'], target=main.params['CASE1']['target'], controller=main.params['CASE1']['controller'])
- result = main.last_result
- utilities.assert_equals(expect=main.TRUE,actual=result,onpass="Ping executed successfully",onfail="Ping failed")
-
-
diff --git a/TestON/tests/PoxTest/PoxTest.topo b/TestON/tests/PoxTest/PoxTest.topo
deleted file mode 100644
index e42a300..0000000
--- a/TestON/tests/PoxTest/PoxTest.topo
+++ /dev/null
@@ -1,31 +0,0 @@
-<TOPOLOGY>
-
- <COMPONENT>
- <Mininet1>
- <host>192.168.56.101</host>
- <user> openflow</user>
- <password> openflow</password>
- <type>MininetCliDriver</type>
- <COMPONENTS>
- # Specify the Option for mininet
- <topo> single</topo>
- <topocount>3</topocount>
- <switch> ovsk </switch>
- <controller> remote </controller>
- </COMPONENTS>
- </Mininet1>
- <POX2>
- <host> 192.168.56.101 </host>
- <user> openflow </user>
- <password> openflow </password>
- <type> PoxCliDriver </type>
- <test_target> 1 </test_target>
- <COMPONENTS>
- <pox_lib_location> /home/openflow/pox/ </pox_lib_location>
- <samples.of_tutorial></samples.of_tutorial>
- </COMPONENTS>
- </POX2>
-
-
- </COMPONENT>
-</TOPOLOGY>
\ No newline at end of file
diff --git a/TestON/tests/PoxTest/__init__.py b/TestON/tests/PoxTest/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/TestON/tests/PoxTest/__init__.py
+++ /dev/null
diff --git a/TestON/tests/VyattaTest/VyattaTest.params b/TestON/tests/VyattaTest/VyattaTest.params
deleted file mode 100644
index 92a5b20..0000000
--- a/TestON/tests/VyattaTest/VyattaTest.params
+++ /dev/null
@@ -1,4 +0,0 @@
-<PARAMS>
- <testcases> [1]</testcases>
- <mail> anil4haart@gmail.com,paxweb@paxterrasolutions.com</mail>
-</PARAMS>
\ No newline at end of file
diff --git a/TestON/tests/VyattaTest/VyattaTest.py b/TestON/tests/VyattaTest/VyattaTest.py
deleted file mode 100644
index 7d4017b..0000000
--- a/TestON/tests/VyattaTest/VyattaTest.py
+++ /dev/null
@@ -1,95 +0,0 @@
-'''
-
- * TestON is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
-
- * TestON is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
-
-
-'''
-
-class VyattaTest :
-
- def __init__(self) :
- self.default = ''
-
- def CASE1(self,main) :
-
- main.case("VyattaTest Sample Test")
- main.step("VyattaTest Sample Test")
- config_result = main.Vyatta.configure()
- main.log.info(config_result)
-
- command_details = main.Vyatta.get_details("show")
- main.log.info("show \n command_details\n\t"+ str(command_details))
-
- command_details = main.Vyatta.get_details("show interfaces")
- main.log.info("show interfaces \n command_details\n\t"+ str(command_details))
-
- command_details = main.Vyatta.get_details("show interfaces ethernet")
- main.log.info("show interfaces ethernet \n command_details\n\t"+ str(command_details))
-
- command_details = main.Vyatta.get_details("show interfaces ethernet eth1")
- main.log.info("show interfaces ethernet eth1 \n command_details\n\t"+ str(command_details))
-
- command_details = main.Vyatta.get_details("show interfaces ethernet eth1 address")
- main.log.info("show interfaces ethernet eth1 address \n command_details\n\t"+ str(command_details))
-
-
- '''
- main.Vyatta.handle.expect("\$")
-
- resultCommand = main.Vyatta.execute(cmd="configure",prompt='\#',timeout=10)
-
- resultCommand = main.Vyatta.execute(cmd="show interfaces ?",prompt='\#',timeout=10)
-
- print "Possible Options \t\t"
- print main.last_response
- print " ->"*10+"\n"*4
- import re
- match = re.findall("\n\s*.\s+(\w+)", main.last_response, 0)
- print match
-
- resultCommand = main.Vyatta.execute(cmd="XYZ",prompt='\#',timeout=10)
-
- print "Command result Upto here \t\t"
- print main.last_response
- print " ->"*10+"\n"*4
- import re
- match = re.findall("\n\s*.\s+(\w+)", main.last_response, 0)
- print match
-
-
- resultCommand = main.Vyatta.execute(cmd="XYZ",prompt='\#',timeout=10)
-
- print "Command result Upto here \t\t"
- print main.last_response
- print " ->"*10+"\n"*4
- import re
- match = re.findall("\n\s*.\s+(\w+)", main.last_response, 0)
- print match
-
-
- resultCommand = main.Vyatta.execute(cmd="show interfaces ethernet ?",prompt='\#',timeout=10)
-
- print "Possible Options \t\t"
- print main.last_response
- print " ->"*10+"\n"*4
- import re
- match = re.findall("\n\s*.\s+(\w+)", main.last_response, 0)
- print match
-
- resultCommand = main.Vyatta.execute(cmd="XYZ",prompt='\#',timeout=10)
-
- print "Command result Upto here \t\t"
- print main.last_response
- print " ->"*10+"\n"*4
- import re
- match = re.findall("\n\s*.\s+(\w+)", main.last_response, 0)
- print match
- '''
diff --git a/TestON/tests/VyattaTest/VyattaTest.topo b/TestON/tests/VyattaTest/VyattaTest.topo
deleted file mode 100644
index 3b13543..0000000
--- a/TestON/tests/VyattaTest/VyattaTest.topo
+++ /dev/null
@@ -1,14 +0,0 @@
-<TOPOLOGY>
-
- <COMPONENT>
- <Vyatta>
- <host>192.168.56.81</host>
- <user> vyatta </user>
-
- <password>vyatta</password>
- <type>RemoteSysDriver</type>
- <COMPONENTS>
- </COMPONENTS>
- </Vyatta>
- </COMPONENT>
-</TOPOLOGY>
diff --git a/TestON/tests/VyattaTest/__init__.py b/TestON/tests/VyattaTest/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/TestON/tests/VyattaTest/__init__.py
+++ /dev/null