Skip to content
Snippets Groups Projects
Commit cd10e860 authored by Robert Latta's avatar Robert Latta
Browse files

initial nokia module, with netconf retrieval

parent fa2909aa
No related branches found
Tags 0.52
No related merge requests found
import logging
from ncclient import manager
logger = logging.getLogger(__name__)
def load_config(hostname, ssh_params, host_key_verify=False):
logger.info(f"capturing netconf data for '{hostname}'")
with manager.connect(
host=hostname,
host_key_verify=host_key_verify,
**ssh_params
) as m:
return m.get_config(source='running')
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