Signed-off-by: Isaku Yamahata <[email protected]>

Conflicts:

        bin/ryu-client
---
 bin/ryu-client |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/bin/ryu-client b/bin/ryu-client
index e121f61..04fec26 100755
--- a/bin/ryu-client
+++ b/bin/ryu-client
@@ -21,6 +21,7 @@ from optparse import OptionParser
 
 from ryu.app.client import TunnelClient
 from ryu.app.client import OFPClient
+from ryu.app.client import SwitchConfClient
 
 
 def client_test():
@@ -37,6 +38,7 @@ def client_test():
     address = options.host + ':' + str(options.port)
     ofp_client = OFPClient(address)
     tun_client = TunnelClient(address)
+    sc_client = SwitchConfClient(address)
 
     commands = {
         'list_nets': lambda a: sys.stdout.write(client.get_networks()),
@@ -66,6 +68,14 @@ def client_test():
             a[1], a[2], a[3]),
         'update_remote_dpid': lambda a: tun_client.update_remote_dpid(
             a[1], a[2], a[3]),
+
+        'sc_list_sw': lambda a: sys.stdout.write(sc_client.list_switches()),
+        'sc_delete_sw': lambda a: sc_client.delete_switch(a[1]),
+        'sc_list_keys': lambda a: sys.stdout.write(sc_client.list_keys(a[1])),
+        'sc_set_key': lambda a: sc_client.set_key(a[1], a[2], a[3]),
+        'sc_get_key': lambda a: sys.stdout.write(
+            sc_client.get_key(a[1], a[2])),
+        'sc_delete_key': lambda a: sc_client.delete_key(a[1], a[2]),
     }
 
     # allow '-', instead of '_'
-- 
1.7.1.1


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to