Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 ryu/cmd/of_config_cli.py | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/ryu/cmd/of_config_cli.py b/ryu/cmd/of_config_cli.py
index 1803849..69b6c02 100755
--- a/ryu/cmd/of_config_cli.py
+++ b/ryu/cmd/of_config_cli.py
@@ -171,6 +171,36 @@ class Cmd(cmd.Cmd):
 
         self._request(line, f)
 
+    def do_delete_config(self, line):
+        """delete_config <peer> <source>
+        eg. delete_config sw1 startup
+        """
+
+        def f(p, args):
+            try:
+                source = args[0]
+            except:
+                print "argument error"
+                return
+            print p.delete_config(source)
+
+        self._request(line, f)
+
+    def do_copy_config(self, line):
+        """copy_config <peer> <source> <target>
+        eg. copy_config sw1 running startup
+        """
+
+        def f(p, args):
+            try:
+                source, target = args
+            except:
+                print "argument error"
+                return
+            print p.copy_config(source, target)
+
+        self._request(line, f)
+
     def do_list_port(self, line):
         """list_port <peer>
         """
-- 
1.8.3.1


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to