项目作者: nights99

项目描述 :
Netconf CLI with tab completion and dynamic download of yang modules.
高级语言: Go
项目地址: git://github.com/nights99/netconf-go.git
创建时间: 2019-06-16T12:42:12Z
项目社区:https://github.com/nights99/netconf-go

开源协议:GNU General Public License v3.0

下载


netconf-go

Netconf CLI with tab completion and dynamic download of yang modules.

Very much alpha quality - probably requires changes before picking up and using.

Can also be compiled to a WebAssembly library for use by a web frontend.
I have a separate Flutter web app that does this, which I hope to also make a public project shortly - contact me if interested.

Usage

  1. Usage of netconf-go:
  2. --address string Address or host to connect to (default "localhost")
  3. --debug string debug level (default "info")
  4. --host string Hostname referring to hosts.yaml entry
  5. --password string Password
  6. --port int Port number to connect to (default 22)
  7. --t Use telnet to connect
  8. --user string Username

Augment handling

TODO

Hosts file

Host details can be saved into a Yaml file hosts.yaml in the current directory.

Each host should have a key that is then passed to the ‘hosts’ command-line parameter to select the entry.

The entries under the key should match the equivalent command-line parameters.

The user can mix both the hosts file and command-line parameters, in which case
if both are specified the command-line parameter will override the hosts entry.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Currently virtually no automated unit-tests, but adding tests would be welcome.

To-do list

  • rearrange to use proper Go module structure and packages
  • upstream goyang changes
  • implement config files for hosts
  • improve augment handling
  • add tests