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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napalm_c2950-0.1.1.tar.gz (39.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napalm_c2950-0.1.1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file napalm_c2950-0.1.1.tar.gz.

File metadata

  • Download URL: napalm_c2950-0.1.1.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.7

File hashes

Hashes for napalm_c2950-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f7cbefbd60a631301a331963630aa1744627b5a134787338d0d56051d1161e74
MD5 ba01cef9be99f4fa9ce4e0b2818128f0
BLAKE2b-256 b698e00bb5ddf7899c46dd6a188be3b69ad393dfe6816238de8350119ea3ebe4

See more details on using hashes here.

File details

Details for the file napalm_c2950-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: napalm_c2950-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.7

File hashes

Hashes for napalm_c2950-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50088c58a05f6fecdf6fef059c9bdaebcd159cc0d272100ac1b9f444879f58b9
MD5 dc8bb5d205f2f61df9ff255594483639
BLAKE2b-256 3231f59896c6970f2813b12fba9c209b21bfa806c5ed9a861af98738e74499ab

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 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