Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/lib/of_config/classes.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/ryu/lib/of_config/classes.py b/ryu/lib/of_config/classes.py
index dfa0619..233ab67 100644
--- a/ryu/lib/of_config/classes.py
+++ b/ryu/lib/of_config/classes.py
@@ -207,3 +207,13 @@ class OFCapableSwitchType(_Base):
_ct('resources', OFCapableSwitchResourceListType),
_ct('logical-switches', OFLogicalSwitchListType),
]
+
+
+# probably should not be here but for convenience
+class NETCONF_Config(_Base):
+ _ELEMENTS = [
+ _ct('capable-switch', OFCapableSwitchType),
+ ]
+
+ def to_xml(self):
+ return super(NETCONF_Config, self).to_xml('{%s}config' % _ns_netconf)
--
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