- 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
55 lines
1.3 KiB
TOML
55 lines
1.3 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=64", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "napalm-tplink-jetstream"
|
|
version = "0.1.2"
|
|
description = "NAPALM driver for TP-Link Jetstream managed switches"
|
|
readme = "README.md"
|
|
license = { text = "Apache-2.0" }
|
|
requires-python = ">=3.8"
|
|
authors = [
|
|
{ name = "Christian Manivong" },
|
|
]
|
|
classifiers = [
|
|
"Topic :: Utilities",
|
|
"License :: OSI Approved :: Apache Software License",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Operating System :: MacOS",
|
|
]
|
|
dependencies = [
|
|
"napalm>=4.0.0",
|
|
"napalm_device_types>=0.2.0",
|
|
"netmiko>=4.0.0",
|
|
"netaddr",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest",
|
|
"pytest-cov",
|
|
"black",
|
|
"ruff",
|
|
]
|
|
|
|
[project.entry-points."napalm.drivers"]
|
|
tplink_jetstream = "napalm_tplink_jetstream:TPLinkJetstreamDriver"
|
|
|
|
[project.urls]
|
|
Repository = "https://github.com/chrismanivong/napalm-tplink-jetstream"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["napalm_tplink_jetstream*"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py38"
|