-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d51ff1a
commit 12c2d17
Showing
6 changed files
with
34 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin env python | ||
|
||
# Modules | ||
from pygnmi.client import gNMIclient | ||
|
||
# Variables | ||
host = ('192.168.56.31',50051) | ||
|
||
# Body | ||
if __name__ == '__main__': | ||
with gNMIclient(target=host, username='admin', password='admin1', insecure=False) as gc: | ||
response = gc.capabilities() | ||
|
||
print(response) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#(c)2019-2021, karneliuk.com | ||
|
||
__version__ = '0.4.8' | ||
__version__ = '0.5.0' |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,20 +6,21 @@ | |
setup( | ||
name = 'pygnmi', | ||
packages = ['pygnmi', 'pygnmi.spec', 'pygnmi.artefacts'], | ||
version = '0.4.8', | ||
version = '0.5.0', | ||
license='bsd-3-clause', | ||
description = 'This repository contains pure Python implementation of the gNMI client to interact with the network functions.', | ||
long_description = long_description, | ||
long_description_content_type = 'text/x-rst', | ||
author = 'Anton Karneliuk', | ||
author_email = '[email protected]', | ||
url = 'https://github.com/akarneliuk/pygnmi', | ||
download_url = 'https://github.com/akarneliuk/pygnmi/archive/v0.4.8.tar.gz', | ||
download_url = 'https://github.com/akarneliuk/pygnmi/archive/v0.5.0.tar.gz', | ||
keywords = ['gnmi', 'automation', 'grpc', 'network'], | ||
install_requires=[ | ||
'grpcio', | ||
'grpcio-tools', | ||
'kthread' | ||
'kthread', | ||
'cryptography' | ||
], | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
|