Skip to main content

napalm-c2950

NAPALM driver for the Cisco Catalyst 2950 (WS-C2950G-48-EI) — a Layer-2-only switch running classic IOS 12.1(x)EA. The official napalm-ios driver assumes modern IOS syntax and features (e.g. show mac address-table, LLDP) that this platform predates or lacks, so this dedicated driver targets the old CLI.

  • Transport: netmiko (device_type=cisco_ios)
  • Base class: napalm.base.NetworkDriver

Install

pip install napalm-c2950

Usage

from napalm import get_network_driver

driver = get_network_driver("c2950")   # resolves to napalm_c2950.C2950Driver
with driver("192.0.2.10", "admin", "secret") as device:
    print(device.get_facts())
    print(device.get_vlans())

Supported getters

Getter Status Command(s)
get_facts ✅ done show version, show ip interface brief
get_interfaces ✅ done show interfaces
get_interfaces_ip ✅ done show interfaces
get_interfaces_counters ✅ done¹ show interfaces
get_mac_address_table ✅ done show mac-address-table
get_arp_table ✅ done² show ip arp
get_vlans ✅ done show vlan brief
get_config ✅ done³ show running-config, show startup-config
get_users ✅ done show running-config
get_snmp_information ✅ done show running-config
get_ntp_servers ✅ done show running-config
get_ntp_stats ✅ done⁴ show ntp associations
get_environment ✅ done⁵ show env all
get_ntp_peers ❌ n/a no ntp peer on this platform
get_lldp_neighbors_detail ❌ n/a 2950 has no LLDP (CDP only) — see notes
_get_cdp_neighbors_detail ✅ done⁶ show cdp neighbors detail
get_interfaces_vlans ✅ extension⁷ show running-config, show interfaces status
get_lldp_status ✅ extension⁷ — (always disabled: no LLDP on the 2950)

Everything else raises NotImplementedError.

¹ The 2950 does not report unicast counts or a TX multicast/broadcast split; those six fields are returned as -1. ² IOS reports ARP age in minutes; it is converted to seconds. vrf is accepted for API compatibility but ignored (single routing table). ³ Candidate config is not supported (candidate is always ""). sanitized=True uses NAPALM's CISCO_SANITIZE_FILTERS. full=True is accepted but ignored — this IOS has no show running-config all. ⁴ The disp column is mapped to jitter; type is not reported (empty string). ⁵ Only fan and power status are exposed by show env all; temperature/cpu are empty and memory fields are -1. ⁶ Not part of the NAPALM schema (there is no CDP getter). Provided as a private method because the 2950 has no LLDP; kept private so the NAPALM method-signature test still passes. ⁷ Not NAPALM base getters (excluded from the method-signature test): the format of the orb-agent custom_napalm drivers (NetBox Labs), consumed by Lineman. get_interfaces_vlans returns {port: {"mode": "access" | "trunk" | "trunk-all" | "routed", "tagged": [...], "untagged": vid | null}} from the running configuration (voice VLAN on an access port -> trunk with the voice VLAN tagged); ports without switchport mode (DTP) take the negotiated state from show interfaces status, and stay routed (unknown) when it cannot be read.

Tested firmware

  • IOS 12.1(22)EA9 on WS-C2950G-48-EI

Notes

  • The 2950 does not implement LLDP. get_lldp_neighbors_detail currently raises NotImplementedError; a CDP-based (show cdp neighbors detail) alternative can be added if desired, though it is not standard NAPALM LLDP semantics.

License

Apache 2.0

Metadata

Release files for napalm-c2950 0.2.0

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-c2950 0.2.0
File Size Uploaded Provenance Actions
napalm_c2950-0.2.0.tar.gz 45.4 kB Without provenance Details for napalm_c2950-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for napalm-c2950 0.2.0
File Interpreter ABI Platform Actions
napalm_c2950-0.2.0-py3-none-any.whl Python 3 none any Details for napalm_c2950-0.2.0-py3-none-any.whl

Total release size: 64.4 kB

Release files / napalm_c2950-0.2.0.tar.gz

Download URL napalm_c2950-0.2.0.tar.gz
Size 45.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0599409376f7ff5ec957965ddae7997407c3acbcf384bcb013179a85bdb1c97b
BLAKE2b-256 checksum
How to use checksums
fc2c178172d27f6ac25bd9a3bb388c63a715ffaf226797ee3c61cee39a2cae1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release files / napalm_c2950-0.2.0-py3-none-any.whl

Download URL napalm_c2950-0.2.0-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a033020e7b6d5f5f4cd6ab1ccf52c75ea4a06b2c98181e23db5ae15b199fb3eb
BLAKE2b-256 checksum
How to use checksums
64f89d166594d03e6e957a5cb8bfd003bee095714e8e07f7f52e35e6d3aee789
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Security for napalm-c2950 0.2.0

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