mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
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:
parent
9a83a89f06
commit
28c6aa1cd7
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user