Skip to content
Snippets Groups Projects
Commit af2f09b4 authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

Add `set_config_mode` in sros.py

parent 5c9c2a3c
Branches
Tags
1 merge request!183Add `set_config_mode` in sros.py
Pipeline #89706 passed
......@@ -102,3 +102,8 @@ class Netconf(NetconfBase):
"""
resp = self.m.commit(confirmed=confirmed, timeout=timeout, persist=persist, comment=comment)
return resp.data_xml if hasattr(resp, "data_xml") else resp.xml
def set_config_mode(self, config_mode):
"""Set the config_mode passed from the module."""
if config_mode:
self._config_mode = config_mode
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment