Skip to content

Commit

Permalink
#49 fix comments from PR 50 about pygnmi
Browse files Browse the repository at this point in the history
  • Loading branch information
ksator committed Jul 16, 2021
1 parent d90bb62 commit 1a68ccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/pygnmi/capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
with gNMIclient(target=host, username=username, password=password, insecure=True) as gc:
result = gc.capabilities()
pp(result)
#print (json.dumps(result, sort_keys=True, indent=2))


2 changes: 0 additions & 2 deletions src/pygnmi/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
with gNMIclient(target=host, username='arista', password='arista', insecure=True) as gc:
raw_data = gc.get(path=paths, encoding='json_ietf')
print(json.dumps(raw_data, sort_keys=True, indent=2))
# print(raw_data['notification'][0]['update'][0]['val']['openconfig-interfaces:description'])

print ('\nSET RPC, update, interface Ethernet1')

Expand Down Expand Up @@ -41,4 +40,3 @@
with gNMIclient(target=host, username='arista', password='arista', insecure=True) as gc:
raw_data = gc.get(path=paths, encoding='json_ietf')
print(json.dumps(raw_data, sort_keys=True, indent=2))
# print(raw_data['notification'][0]['update'][0]['val']['openconfig-interfaces:description'])

0 comments on commit 1a68ccf

Please sign in to comment.