Skip to content

Instantly share code, notes, and snippets.

@h4ndzdatm0ld
Last active May 18, 2020 23:48
Show Gist options
  • Save h4ndzdatm0ld/3951272e5289d92b76bb04ca0f14f088 to your computer and use it in GitHub Desktop.
Save h4ndzdatm0ld/3951272e5289d92b76bb04ca0f14f088 to your computer and use it in GitHub Desktop.
NETCONF template
def netconfconn(nodeip,ncusername,ncpassword):
conn = manager.connect(host=nodeip,
port=830,
username=ncusername,
password=ncpassword,
hostkey_verify=False,
device_params={'name':'alu'})
return conn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment