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

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.

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.1.1

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.1.1
File Size Uploaded
napalm_c2950-0.1.1.tar.gz 39.9 kB Details

Built distribution (wheel)

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

Total release size: 56.7 kB

Release files / napalm_c2950-0.1.1.tar.gz

Download URL napalm_c2950-0.1.1.tar.gz
Size 39.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f7cbefbd60a631301a331963630aa1744627b5a134787338d0d56051d1161e74
BLAKE2b-256 checksum
How to use checksums
b698e00bb5ddf7899c46dd6a188be3b69ad393dfe6816238de8350119ea3ebe4
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.1.1-py3-none-any.whl

Download URL napalm_c2950-0.1.1-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50088c58a05f6fecdf6fef059c9bdaebcd159cc0d272100ac1b9f444879f58b9
BLAKE2b-256 checksum
How to use checksums
3231f59896c6970f2813b12fba9c209b21bfa806c5ed9a861af98738e74499ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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