Skip to main content

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/context.yml

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.

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).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gnetcli_adapter-2.8.4.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gnetcli_adapter-2.8.4-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file gnetcli_adapter-2.8.4.tar.gz.

File metadata

  • Download URL: gnetcli_adapter-2.8.4.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for gnetcli_adapter-2.8.4.tar.gz
Algorithm Hash digest
SHA256 4d52c7b113a0d5e8068baa4bbbf921bbaae0c085230b810b30f10b9f8cddc51b
MD5 fd16fb4544e0e0bf537ed5aaa85ef9a9
BLAKE2b-256 7bad591d9fb3b7391fcbb5f302c4de05b2b1cc7fac42f7a6bc6cf5597c451d84

See more details on using hashes here.

Provenance

The following attestation bundles were made for gnetcli_adapter-2.8.4.tar.gz:

Publisher: publish.yml on annetutil/gnetcli_adapter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gnetcli_adapter-2.8.4-py3-none-any.whl.

File metadata

File hashes

Hashes for gnetcli_adapter-2.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2b2b457b22dbbec393574ce591f73d746ea60c193ca221e25dd9b0d8aa9292eb
MD5 f6680643ee998138160f80d90d420370
BLAKE2b-256 c89342d1952692c0e358cfd428b8dcdbe4c256f09731091b7671192880f24305

See more details on using hashes here.

Provenance

The following attestation bundles were made for gnetcli_adapter-2.8.4-py3-none-any.whl:

Publisher: publish.yml on annetutil/gnetcli_adapter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page