From 9a83a89f060f2196984633d4f6e995671737cf27 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 19 Dec 2013 16:17:55 +0900 Subject: [PATCH] tests.integrated.test_of_config: update after capable_switch api change Signed-off-by: YAMAMOTO Takashi Signed-off-by: FUJITA Tomonori --- ryu/tests/integrated/test_of_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/tests/integrated/test_of_config.py b/ryu/tests/integrated/test_of_config.py index 0f544639..ad0aeca2 100644 --- a/ryu/tests/integrated/test_of_config.py +++ b/ryu/tests/integrated/test_of_config.py @@ -228,7 +228,7 @@ class OFConfigClient(app_manager.RyuApp): traceback.print_exc() def _do_get(self): - data_xml = self.switch.get() + data_xml = self.switch.raw_get() tree = lxml.etree.fromstring(data_xml) # print(lxml.etree.tostring(tree, pretty_print=True)) @@ -243,7 +243,7 @@ class OFConfigClient(app_manager.RyuApp): def _do_get_config(self, source): print('source = %s' % source) - config_xml = self.switch.get_config(source) + config_xml = self.switch.raw_get_config(source) tree = lxml.etree.fromstring(config_xml) # print(lxml.etree.tostring(tree, pretty_print=True)) @@ -252,7 +252,7 @@ class OFConfigClient(app_manager.RyuApp): def _do_edit_config(self, config): tree = lxml.etree.fromstring(config) self._validate(tree) - self.switch.edit_config(target='running', config=config) + self.switch.raw_edit_config(target='running', config=config) def _print_ports(self, tree, ns): for port in tree.findall('{%s}%s/{%s}%s' % (ns, ofc_consts.RESOURCES,