20 Commits
Author SHA1 Message Date
Christian Manivong a772b0f967 fix(deps): pin paramiko>=5.0.0 (CVE-2026-44405)
Tests / Test (Python 3.10) (push) Failing after 5s
Tests / Test (Python 3.11) (push) Failing after 6s
Tests / Test (Python 3.12) (push) Failing after 6s
Tests / Test (Python 3.8) (push) Failing after 5s
Tests / Test (Python 3.9) (push) Failing after 6s
2026-07-02 12:22:55 +02:00
Christian Manivong 33ef6f86fa fix(get_config): strip timestamped event-log lines from running-config
Tests / Test (Python 3.10) (push) Failing after 6s
Tests / Test (Python 3.11) (push) Failing after 6s
Tests / Test (Python 3.12) (push) Failing after 5s
Tests / Test (Python 3.8) (push) Failing after 6s
Tests / Test (Python 3.9) (push) Failing after 5s
TP-Link embeds system event log entries (link up/down, etc.) in
show running-config output. These change every event and cause false-
positive config-change detections. Strip lines matching #YYYY-MM-DD.
2026-06-30 01:29:56 +02:00
Christian Manivong dccd18da65 fix: falsche OUI-Prefixes entfernen (gegen IEEE verifiziert)
Tests / Test (Python 3.10) (push) Failing after 5s
Tests / Test (Python 3.11) (push) Failing after 5s
Tests / Test (Python 3.12) (push) Failing after 6s
Tests / Test (Python 3.8) (push) Failing after 12s
Tests / Test (Python 3.9) (push) Failing after 6s
2026-06-24 17:06:45 +02:00
Christian ManivongandClaude Sonnet 4.6 3718658294 feat: OUI_PREFIXES für MAC/ARP-Fingerprinting
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 15:41:45 +02:00
Christian ManivongandClaude Sonnet 4.6 b03f3073d5 feat: Fingerprint-Attribute für Discovery-Scoring
Ergänzt DRIVER_NAME, HTTP_FINGERPRINT, SNMP_FINGERPRINT, SSH_FINGERPRINT,
PORT_SPECS und SNMP_OBJECT_ID_PREFIX gemäß docs/DISCOVERY_FINGERPRINTING.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 14:47:08 +02:00
Christian ManivongandClaude Sonnet 4.6 114aaa90f8 fix: set_interface access VLAN uses correct TP-Link CLI commands
- Replace 'switchport general pvid {vlan}' (invalid) with 'switchport pvid {vlan}'
- For access mode: read current untagged VLAN memberships before entering
  config mode, then issue 'no switchport general allowed vlan {old_vid}'
  for each to avoid leaving the port with two untagged VLANs
- Add native_vlan support for trunk mode via 'switchport pvid {native_vlan}'
- Remove invalid 'switchport mode access/general' commands (not supported
  on this switch family)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-23 21:31:16 +02:00
Christian ManivongandClaude Sonnet 4.6 85215ce150 feat: add PoE config and LAG/trunk membership support
get_poe_status()/set_poe() implement PoE port config via the JetStream
CLI's 'power inline' interface sub-commands. get_interfaces() now enriches
LagN entries and their member ports with trunk_group/lag_members/lag_mode
by parsing 'show link-aggregation summary'. New set_lag_members() adds/
removes members via channel-group/no channel-group.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-12 14:48:29 +02:00
Christian Manivong c53b21ad65 feat: interface enable/description config + fix SNMP auto-fix and detection
- set_interface(): support enabled (shutdown/no shutdown) and description
- get_snmp_config(): detect "no community entry exists" as not-configured
  instead of reporting running=True with no community
- _action_fix_snmp(): use config-mode prompt for in-config commands
  (previously timed out waiting for the exec prompt) and return its result
2026-06-10 02:06:43 +02:00
Christian ManivongandClaude Sonnet 4.6 2a9ddac02d feat: add get_health_metrics() via TP-Link proprietary OIDs
SNMP health metrics using TP-Link enterprise MIB (OID 11863) for
uptime, per-unit CPU utilization, and per-unit memory utilization.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 00:43:38 +02:00
Christian ManivongandClaude Sonnet 4.6 cbe73cab64 feat: SNMP support — get_snmp_config(), fix_snmp action, get_device_warnings()
get_snmp_config() reads 'show snmp community', fix_snmp detects management VLAN
from 'show ip interface' and configures source-interface + community with correct
JetStream CLI syntax. get_device_warnings() added (was missing, caused AttributeError).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-01 13:09:45 +02:00
Christian Manivong 1874622543 feat: add VLAN/interface write methods and SG3210 support (v0.1.2)
- Implement `delete_vlan()`: removes VLAN from switch, automatically
  moves untagged (PVID) ports to VLAN 1 before deletion to satisfy
  TP-Link's constraint
- Implement `set_vlan()`: creates or updates a VLAN with optional name
- Implement `set_interface()`: configures trunk/access mode and VLAN
  membership on a switch interface
- Add `_to_cli_interface()` helper to expand abbreviated port names
  (e.g. Gi1/0/1 → gigabitEthernet 1/0/1)
- Import `InterfaceConfigDict` and `VlanConfigDict` from
  `napalm_device_types.models`
- Bump `napalm_device_types` dependency to >=0.2.0
- Add TL-SG3210 to tested-device table in README
- Bump version to 0.1.2
2026-05-29 08:53:13 +02:00
Christian Manivong ec70aad7ca Bump version to 0.1.1 2026-05-12 23:09:16 +02:00
Christian Manivong 7b01d73147 Fixed VLAN membership detection for multiline result 2026-05-12 22:53:25 +02:00
Christian Manivong 25bb0c36f2 Added napalm_device_types to pyproject 2026-05-11 22:15:01 +02:00
Christian Manivong 763bb7f5e9 Fixed typo in requirement.txt 2026-05-11 22:11:57 +02:00
Christian Manivong 7494b15b26 Added required napalm_device_types 2026-05-11 22:06:55 +02:00
Christian Manivong e8245f955c GitHub Actions to publish on pypi 2026-05-11 22:00:40 +02:00
Christian Manivong e9f9e291d5 Add usage of device type abstraction layer 2026-05-11 21:56:46 +02:00
Christian Manivong 5a3508d79e docs: add tested devices section (TL-SG2210P) 2026-05-09 19:16:20 +02:00
Christian Manivong 6a04796dd7 Inital commit 2026-05-09 19:05:49 +02:00