adding TestON
diff --git a/TestON/tests/DpctlTest/.svn/text-base/DpctlTest.params.svn-base b/TestON/tests/DpctlTest/.svn/text-base/DpctlTest.params.svn-base
new file mode 100644
index 0000000..bfd1819
--- /dev/null
+++ b/TestON/tests/DpctlTest/.svn/text-base/DpctlTest.params.svn-base
@@ -0,0 +1,37 @@
+[PARAMS]
+ 'testcases' = '[1,2]'
+ 'mail' = 'anilkumar.s@paxterrasolutions.com,paxweb@paxterrasolutions.com'
+ #'log_dir' = '/home/user/Desktop/openflow_logs/'
+ [[CASE1]]
+ 'tcpip' = '127.0.0.1'
+ 'tcpport' = '6634'
+ 'destination' = 'h2'
+ [[[STEP1]]]
+ 'tcpip' = '127.0.0.1'
+ 'tcpport' = '6634'
+ 'inport' = '1'
+ 'timeout' = '360'
+ 'action' = 'output:2'
+ [[[STEP2]]]
+ 'tcpip' = '127.0.0.1'
+ 'tcpport' = '6634'
+ 'inport' = '2'
+ 'timeout' = '360'
+ 'action' = 'output:3'
+ [[CASE2]]
+ 'tcpip' = '127.0.0.1'
+ 'tcpport' = '6634'
+ 'destination' = 'h2'
+ [[[STEP1]]]
+ 'tcpip' = '127.0.0.1'
+ 'tcpport' = '6634'
+ 'inport' = '1'
+ 'timeout' = '360'
+ 'action' = 'output:2'
+ [[[STEP2]]]
+ 'tcpip' = '127.0.0.1'
+ 'tcpport' = '6634'
+ 'inport' = '2'
+ 'timeout' = '360'
+ 'action' = 'output:3'
+
diff --git a/TestON/tests/DpctlTest/.svn/text-base/DpctlTest.py.svn-base b/TestON/tests/DpctlTest/.svn/text-base/DpctlTest.py.svn-base
new file mode 100644
index 0000000..f5e7cde
--- /dev/null
+++ b/TestON/tests/DpctlTest/.svn/text-base/DpctlTest.py.svn-base
@@ -0,0 +1,55 @@
+class DpctlTest:
+ '''
+ Testing of the some basic Dpctl functions included here
+ '''
+
+ def __init__(self):
+ self.default = ""
+
+ def CASE1(self,main):
+ '''
+ Test to add the flow configuration by using dpctl and ping the host
+ '''
+ main.case("DPCTL ping host ")
+ main.step("adding flow for host2 ")
+ main.DPCTL1.addFlow(tcpip=main.params['CASE1']['STEP1']['tcpip'],
+ tcpport=main.params['CASE1']['STEP1']['tcpport'],
+ inport=main.params['CASE1']['STEP1']['inport'],
+ timeout=main.params['CASE1']['STEP1']['timeout'],
+ action=main.params['CASE1']['STEP1']['action'])
+ main.step("adding another flow for host3")
+ main.DPCTL1.addFlow(tcpip=main.params['CASE1']['STEP2']['tcpip'],
+ tcpport=main.params['CASE1']['STEP2']['tcpport'],
+ inport=main.params['CASE1']['STEP2']['inport'],
+ timeout=main.params['CASE1']['STEP2']['timeout'],
+ action=main.params['CASE1']['STEP2']['action'])
+ main.step("Ping from h2 to h3")
+ result = main.Mininet1.pingHost(src=main.componentDictionary['DPCTL1']['src'],
+ target=main.componentDictionary['DPCTL1']['target'],
+ controller=main.componentDictionary['DPCTL1']['controller'])
+ utilities.assert_equals(expect=main.TRUE,actual=result,onpass="Show flow executed",onfail="Show flow execution Failed")
+
+
+ def CASE2(self,main):
+ '''
+ Test to add the flow configuration by using dpctl and show the flow using dpctl
+ '''
+ main.case("DPCTL show flow ")
+ main.step("adding flow for host2")
+
+ main.DPCTL1.addFlow(tcpip=main.params['CASE2']['STEP1']['tcpip'],
+ tcpport=main.params['CASE2']['STEP1']['tcpport'],
+ inport=main.params['CASE2']['STEP1']['inport'],
+ timeout=main.params['CASE2']['STEP1']['timeout'],
+ action=main.params['CASE2']['STEP1']['action'])
+ main.step("adding flow for host3")
+ main.DPCTL1.addFlow(tcpip=main.params['CASE2']['STEP2']['tcpip'],
+ tcpport=main.params['CASE2']['STEP2']['tcpport'],
+ inport=main.params['CASE2']['STEP2']['inport'],
+ timeout=main.params['CASE2']['STEP2']['timeout'],
+ action=main.params['CASE2']['STEP2']['action'])
+ main.step("Execute Show flow ")
+ result = main.DPCTL1.showFlow(tcpip=main.params['CASE2']['tcpip'],tcpport=main.params['CASE2']['tcpport'])
+ utilities.assert_equals(expect=main.TRUE,actual=result,onpass="Show flow executed",onfail="Show flow execution Failed")
+
+
diff --git a/TestON/tests/DpctlTest/.svn/text-base/DpctlTest.topo.svn-base b/TestON/tests/DpctlTest/.svn/text-base/DpctlTest.topo.svn-base
new file mode 100644
index 0000000..77e2591
--- /dev/null
+++ b/TestON/tests/DpctlTest/.svn/text-base/DpctlTest.topo.svn-base
@@ -0,0 +1,24 @@
+[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'
+ [[["DPCTL1"]]]
+ 'host' = '192.168.56.101'
+ 'user' = 'openflow'
+ 'password' = 'openflow'
+ 'test_target' = '1'
+ 'type' = 'DPCTL'
+ 'src' = 'h2'
+ 'target' = 'h3'
+ 'controller' = 'c1'
+ [[[["COMPONENTS"]]]]
diff --git a/TestON/tests/DpctlTest/.svn/text-base/__init__.py.svn-base b/TestON/tests/DpctlTest/.svn/text-base/__init__.py.svn-base
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/TestON/tests/DpctlTest/.svn/text-base/__init__.py.svn-base