Skip to content
Snippets Groups Projects
Commit a3e455ec authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device component:

- solved minor bug with default openconfig operations.
parent 1429d8b6
No related branches found
No related tags found
1 merge request!54Release 2.0.0
......@@ -183,9 +183,8 @@ def do_sampling(samples_cache : SamplesCache, resource_key : str, out_samples :
def edit_config(
netconf_handler : NetconfSessionHandler, resources : List[Tuple[str, Any]], delete=False, target='running',
default_operation=None, test_option=None, error_option=None, format='xml' # pylint: disable=redefined-builtin
default_operation='merge', test_option=None, error_option=None, format='xml' # pylint: disable=redefined-builtin
):
if default_operation is None: default_operation = 'delete' if delete else 'merge'
str_method = 'DeleteConfig' if delete else 'SetConfig'
LOGGER.info('[{:s}] resources = {:s}'.format(str_method, str(resources)))
results = [None for _ in resources]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment