Skip to content

Commit

Permalink
Major simplifications and new abstractions, renamed napalm-srl -> nap…
Browse files Browse the repository at this point in the history
…alm-srlinux, adding typing and reimplementing PoC methods for get_bgp_neighbors, get_lldp_neighbors, get_users.
  • Loading branch information
tardoe committed Aug 23, 2024
1 parent 4259ef8 commit 78a1043
Show file tree
Hide file tree
Showing 15 changed files with 970 additions and 5,221 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ Syed Shekupillai <[email protected]>
Ashna Shah <[email protected]>
Wim Henderickx <[email protected]>
Jeroen van Bemmel <[email protected]>
Tim Raphael <[email protected]>
10 changes: 2 additions & 8 deletions examples/example_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@
from napalm import get_network_driver
import json

driver = get_network_driver("srl")
driver = get_network_driver("srlinux")
optional_args = {
"gnmi_port": 57400,
"jsonrpc_port": 80,
"target_name": "172.20.20.2",
"tls_cert":"/root/gnmic_certs/srl_certs/clientCert.crt",
"tls_ca": "/root/gnmic_certs/srl_certs/RootCA.crt",
"tls_key": "/root/gnmic_certs/srl_certs/clientKey.pem",
#"skip_verify": True,
#"insecure": False
"encoding": "JSON_IETF"
}
}
device = driver("172.20.20.2", "admin", "admin", 60, optional_args)
device.open()
#print(json.dumps(device.get_bgp_config(neighbor="", group=""))) #Done
Expand Down
2,041 changes: 0 additions & 2,041 deletions napalm_srl/gnmi_pb2.py

This file was deleted.

262 changes: 0 additions & 262 deletions napalm_srl/jsondiff.py

This file was deleted.

Loading

0 comments on commit 78a1043

Please sign in to comment.