Transport Selection¶
Networka supports pluggable connection transports. Today, Scrapli is the default and stable choice. A Netmiko-based transport via Nornir is planned.
Current status¶
- Default transport:
scrapli
(stable) - Config default override:
general.default_transport_type
inconfig/config.yml
- Per-device override:
transport_type
in a device entry - CLI override:
--transport
on commands likenw run
,nw ssh
,nw info
- nornir-netmiko: not yet supported but coming soon
How precedence works¶
- CLI
--transport
if provided - Device
transport_type
if set - Global
general.default_transport_type
(defaults toscrapli
)
Examples¶
# Use default transport (scrapli)
nw run sw-acc1 "/system/identity/print"
# Force transport per run
nw run sw-acc1 "/system/identity/print" --transport scrapli
# Set default transport in config/config.yml
general:
default_transport_type: scrapli
Notes¶
- Transport selection affects how connections and commands are executed.
- Some features may be transport-specific. The Scrapli transport is the reference implementation.
- nornir-netmiko is under active development and will be documented here when available.
- Windows: Scrapli is not officially supported on native Windows. Prefer WSL2/Cygwin for a POSIX environment; native use is best-effort.