test: documentation names and addresses in fixtures
driver / types (pull_request) Successful in 1m0s
driver / standard (pull_request) Successful in 16s
driver / lint (pull_request) Successful in 15s
driver / test (3.12) (pull_request) Successful in 1m9s
driver / test (3.13) (pull_request) Successful in 1m3s
driver / lowest (pull_request) Successful in 32s
driver / build (pull_request) Successful in 44s
driver / security (pull_request) Successful in 1m19s
CI / driver (pull_request) Successful in 2m56s
driver / publish (pull_request) Skipped

Fixtures, docstring examples and the README use neutral host names
(ap-01, ap-02) and addresses from the documentation ranges 192.0.2.0/24,
198.51.100.0/24 and 203.0.113.0/24, mapped one to one so every test
keeps its meaning: the management network test still has its address
inside that network, a route still covers its prefix. Loopback, the
wildcard address and netmasks are unchanged.
This commit is contained in:
Christian Manivong committed 2026-11-12 19:21:54 +01:00
1 parent 780b635174
commit e4ae42fea0
10 files changed
+125 -123

No files matched your search

+2 -2
View File
@@ -37,7 +37,7 @@ pip install -e .
from napalm import get_network_driver
driver = get_network_driver("openwrt")
device = driver("192.168.1.1", "root", "")
device = driver("192.0.2.1", "root", "")
device.open()
@@ -83,7 +83,7 @@ Configuration is managed via [UCI](https://openwrt.org/docs/guide-user/base-syst
device.load_merge_candidate(
config="""
uci set system.@system[0].hostname='my-router'
uci set network.lan.ipaddr='10.0.0.1'
uci set network.lan.ipaddr='192.0.2.1'
"""
)