Created
November 3, 2019 06:45
-
-
Save afaqk9394/ba8be10e4b2d08d2dc51d96ea7aa56ad to your computer and use it in GitHub Desktop.
NETCONF or RESTCONF APIs via Python PyNSO library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pprint import pprint | |
| from pynso.client import NSOClient | |
| from pynso.datastores import DatastoreType | |
| client = NSOClient('<ip-address>', 'admin', 'admin') | |
| pprint(client.info()['version']) | |
| pprint(client.get_datastore(DatastoreType.RUNNING)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment