Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/cmd/of_config_cli.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/ryu/cmd/of_config_cli.py b/ryu/cmd/of_config_cli.py
index 7033ae2..7a11882 100755
--- a/ryu/cmd/of_config_cli.py
+++ b/ryu/cmd/of_config_cli.py
@@ -101,6 +101,16 @@ class Cmd(cmd.Cmd):
return []
return [name for name in peers if name.startswith(text)]
+ def do_list_cap(self, line):
+ """list_cap <peer>
+ """
+
+ def f(p, args):
+ for i in p.netconf.server_capabilities:
+ print i
+
+ self._request(line, f)
+
def do_raw_get(self, line):
"""raw_get <peer>
"""
@@ -136,6 +146,9 @@ class Cmd(cmd.Cmd):
def complete_raw_get_config(self, text, line, begidx, endidx):
return self._complete_peer(text, line, begidx, endidx)
+ def complete_list_cap(self, text, line, begidx, endidx):
+ return self._complete_peer(text, line, begidx, endidx)
+
def do_EOF(self, _line):
sys.exit(0)
--
1.8.3.1
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel