/onm-cli

YANG-based CLI for sysrepo datastore.

Primary LanguageCGNU General Public License v3.0GPL-3.0

onmcli

"Okda Network Manager CLI" (onmcli) is a command-line interface designed for configuring the Sysrepo datastore. It operates by generating commands based on the YANG modules that have been installed in the Sysrepo system.

Table of Contents

Build

require: sysrepo.

onmcli uses a customized fork of libcli.

# build
$ make
# install
$ sudo make install
# run
$ onmcli

The default compiler is gcc. It can be changed to clang using:

# build
$ CC=clang make
# install
$ sudo make install
# run
$ onmcli

usage

[+] demo

demo

[+] you can manage sysrepo:

pc# sysrepo ?
  set-module-path      set yang modules path search to install in sysrepo
  list-modules         list all sysrepo yang modules
  install-module       install yang module in sysrepo
  remove-module        remove yang module from sysrepo
pc# sysrepo set-module-path /path/to/yang/standard/ietf/RFC
pc# sysrepo install-module ietf-vrrp.yang
[INF] Module "ietf-vrrp" was installed.
[INF] File "ietf-vrrp@2018-03-13.yang" was installed.
pc# sysrepo list-modules
[+] ietf-ipv4-unicast-routing
[+] ietf-routing
[+] ietf-vrrp
pc#

extension

[+] key-default-val: add support for list key default value.