of_config.capable_switch: add delete_config and copy_config

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
YAMAMOTO Takashi 2013-12-19 16:17:56 +09:00 committed by FUJITA Tomonori
parent 9a83a89f06
commit 28c6aa1cd7

View File

@ -117,5 +117,11 @@ class OFCapableSwitch(object):
xml = ofc.NETCONF_Config(capable_switch=capable_switch).to_xml()
self.raw_edit_config(target, xml, default_operation)
def delete_config(self, source):
self.netconf.delete_config(source)
def copy_config(self, source, target):
self.netconf.copy_config(source, target)
# TODO: more netconf operations
# TODO: convinience(higher level) methods