gnetcli_adapter
This package provides deployer and fetcher adapters for Annet
Examples
Using specified login and password
cat ~/.annet/context.yml
fetcher:
default:
adapter: gnetcli
params: &gnetcli
dev_login: mylogin
dev_password: mypassword
deployer:
default:
adapter: gnetcli
params:
<<: *gnetcli
...
context:
default:
fetcher: default
deployer: default
selected_context: default
Using tunnel through master SSH-connection
https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing
cat ~/.ssh/config
Host myhost*
ProxyJump mybastion
Host mybastion
ControlMaster auto
ControlPath ~/.ssh/mastersockets/%r@%h:%p
ControlPersist 120m
~/.annet/context.yml the same because gnetcli read .ssh/config by default.
Enforcing minimum command timeouts
min_cmd_timeout and min_read_timeout set lower bounds, in seconds, for
timeouts sent to gnetcli_server. Values configured on individual Annet
commands are preserved when they are larger.
fetcher:
default:
adapter: gnetcli
params: &gnetcli
min_cmd_timeout: 120
min_read_timeout: 60
deployer:
default:
adapter: gnetcli
params:
<<: *gnetcli
With this configuration, a command timeout of 30 seconds is raised to 120, while a command timeout of 180 seconds remains unchanged. Omit either setting to leave that timeout unchanged.
Connecting to an externally-running gnetcli_server
If gnetcli_server is already running on a bastion host, set url and the
adapter will connect to it instead of spawning a local server binary. login
and password authenticate to the gnetcli server itself (Basic auth);
dev_login/dev_password are still the network device credentials.
fetcher:
default:
adapter: gnetcli
params: &gnetcli
url: 192.0.2.10:50051
login: gnetcli-user
password: gnetcli-secret
dev_login: mylogin
dev_password: mypassword
deployer:
default:
adapter: gnetcli
params:
<<: *gnetcli
When url is unset, the adapter starts a local gnetcli_server subprocess
(server_path defaults to gnetcli_server on $PATH).
The default insecure_grpc: true means the external-server example does not
use TLS. Basic authentication over plaintext is only appropriate on a trusted
local/tunnelled connection. Do not expose it directly to an untrusted network.
For local key-only server credentials, omit both dev_login and dev_password;
explicit per-device credentials override the server defaults.
Metadata
Release files for gnetcli-adapter 2.8.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gnetcli_adapter-2.8.5.tar.gz | 13.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gnetcli_adapter-2.8.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.6 kB
Release files / gnetcli_adapter-2.8.5.tar.gz
| Download URL | gnetcli_adapter-2.8.5.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ddbf9a35193f38af64e217af43edae99f25e34561502af95f488e799ed38d5e
|
|
BLAKE2b-256 checksum How to use checksums |
bdb3acd8af35c41fc73574e5840bdac088b133c3fd60b6481ffacb46905bde25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / gnetcli_adapter-2.8.5-py3-none-any.whl
| Download URL | gnetcli_adapter-2.8.5-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8aad08498caf250b9aaa492e6c7649bd25c52f8e8f2a28f75a98073c87ccab91
|
|
BLAKE2b-256 checksum How to use checksums |
6ca97fdc55ed2365bfc21d93cc71b8385df7ae496773e7a1dbba8fd6e956c7dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency log