Skip to main content

Nokia napalm-srlinux

Community NAPALM driver for the Nokia SR Linux OS. https://www.nokia.com/networks/products/service-router-linux-NOS/

Getting started - quick connection code snippet

driver = get_network_driver("srl")
optional_args = {
  "gnmi_port": 57400, # default
  "jsonrpc_port": 443, # default

  # "tls_ca": tls_ca, # Root CA to verify SSL connections
  # "tls_cert": cwd + "srl/client.pem",
  # "tls_key": cwd + "srl/client.key",
  # "skip_verify": True,
  "insecure": True, # FOR TESTING PURPOSES ONLY - this uses the server certificate as root of trust
  "encoding": "JSON_IETF"
}
device = driver("host-or-ip", "admin", "NokiaSrl1!", 10, optional_args)
device.open()
facts = device.get_facts()
print( facts )
device.close()

NAPALM

NAPALM (Network Automation and Programmability Abstraction Layer with Multivendor support) is a Python library that implements a set of functions to interact with different router vendor devices using a unified API.

NAPALM supports several methods to connect to the devices, to manipulate configurations or to retrieve data.

SR Linux OS

The driver leverages Nokia SRL YANG models for configuration and state trees for the SRL platform. NAPALM integration is validated with a minimum of Nokia Service Router Linux Operating System (SRL OS) version 21.3.1.

Releases beyond this have not been validated and should be by users before using the driver in labs and production on devices using different SRL OS versions. Please contact the Nokia owners of this repository for additional information with respect to additional release validation.

Documentation

  1. Please read the installation instruction in Install Document
  2. Mapping of various parameters of NAPALM output to Nokia SRL can be found in this Mapping Document
  3. For testing, please refer to Test Document

**Components **

  1. Python (3.7 or later)
  2. grpcio
  3. protobuf
Important Notes
  1. Ports: The napalm-srlinux driver uses gNMI and JSON-RPC for various functions, Make sure to enable the ports at SR Linux Node (57400 and 443 respectively by default)

  2. Certificates: The napalm-srlinux driver establishes secure connection only with the node, Hence make sure the appropriate CA/Certificates and Keys are in place. For testing purposes, 'insecure=True' can be used to accept any certificate presented by the device

  3. Compare_Config: The compare_commit based on the previously called function performs the operation as below, Default is on-box difference

    Function compare_config
    LOAD_MERGE on-box difference
    LOAD_REPLACE out-box difference
  4. Proxy Setting: The driver establishes RPC connections with the nodes, Check proxy settings at local machine(where driver is running), Disable proxy if not needed when running locally.

License

This project is licensed under the Apache-2.0 license - see the LICENSE file.

Metadata

Release files for napalm-srl 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for napalm-srl 1.0.5
File Size Uploaded Provenance Actions
napalm_srl-1.0.5.tar.gz 44.0 kB Without provenance Details for napalm_srl-1.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for napalm-srl 1.0.5
File Interpreter ABI Platform Actions
napalm_srl-1.0.5-py3-none-any.whl Python 3 none any Details for napalm_srl-1.0.5-py3-none-any.whl

Total release size: 86.6 kB

Release files / napalm_srl-1.0.5.tar.gz

Download URL napalm_srl-1.0.5.tar.gz
Size 44.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bd850a84a7dba7f7b1321d7f59019ccb0dfc516b6897dcd3fb4f85370d353825
BLAKE2b-256 checksum
How to use checksums
40bd006662611e354fffbba740e0072bba4cd84b42384d8636837ef6c6eecf0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release files / napalm_srl-1.0.5-py3-none-any.whl

Download URL napalm_srl-1.0.5-py3-none-any.whl
Size 42.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba97f31b8d4886571738e5b85c8e562f63859562ecd4f9d4629406f799012a3c
BLAKE2b-256 checksum
How to use checksums
994cdca049306e62492553146e234046adf84b5f80430c822f12df8e5c621c27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Security for napalm-srl 1.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page