logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sysrepocfg - sysrepo configuration manipulation tool

Authors

       Michal Vasko <mvasko@cesnet.cz>

Description

sysrepocfg  is  a command-line tool for manipulation of YANG data configuration stored in sysrepo. It can
       modify it in several ways and also send YANG RPCs and notifications.

Name

       sysrepocfg - sysrepo configuration manipulation tool

Operation

-h, --help
              Print usage help.

       -V, --version
              Print only information about sysrepo version.

       -I, --import[=PATH]
              Import the configuration from a file or STDIN.

       -X, --export[=PATH]
              Export configuration to a file or STDOUT.

       -E, --edit[=PATH/EDITOR]
              Edit configuration data by merging (applying) a  configuration  (edit)  file  or  by  editing  the
              current datastore content using a text editor.

       -R, --rpc[=PATH/EDITOR]
              Send a RPC/action in a file or using a text editor. Output is printed to STDOUT.

       -N, --notification[=PATH/EDITOR]
              Send a notification in a file or using a text editor.

       -C, --copy-fromPATH/SOURCE-DATASTORE
              Perform a copy-config from a file or a datastore.

       -W, --new-dataPATH
              Set  the  configuration  from  a  file  as  the  initial one for a new module only scheduled to be
              installed. Is useful for modules with mandatory top-level nodes.

       When both a PATH and EDITOR/SOURCE-DATASTORE can be specified, it is always first checked that  the  file
       exists.  If not, then it is interpreted as the other parameter. If no PATH and no EDITOR is set, use text
       editor in $VISUAL or $EDITOR environment variables.

Options

-d, --datastoreDATASTORE
              Datastore to be operated on. Accepted by import, export, edit, copy-from op. DATASTORE is:
               • running (default)
               • startupcandidateoperational-m, --moduleMODULE
              Module to be operated on, otherwise it is operated on full datastore.  Accepted by import, export,
              edit, copy-from, mandatory for new-data op.

       -x, --xpathXPATH
              XPath to select. Accepted by export op.

       -f, --formatFORMAT
              Data format to be used, by default based on file extension or xml if not applicable.  Accepted  by
              all op.  DATASTORE is:
               • xml (default)
               • jsonlyb-l, --lock
              Lock the specified datastore for the whole operation. Accepted by edit op.

       -n, --not-strict
              Silently ignore any unknown data. Accepted by import, edit, rpc, notification, copy-from op.

       -o, --opaque
              Parse invalid nodes in the edit into opaque nodes. Accepted by edit op.

       -p, --depthDEPTH
              Limit the depth of returned subtrees, 0 (unlimited) by default. Accepted by export op.

       -t, --timeoutSECONDS
              Set the timeout for the operation, otherwise the default one is used.  Accepted by all op.

       -e, --defaultsWD-MODE
              Print  the  default  values, which are trimmed by default.  Accepted by export, edit, rpc op.  WD-MODE is:
               • trim (default)
               • report-allreport-all-taggedexplicitimplicit-tagged-v, --verbosityLEVEL
              Change verbosity to a level. Accepted by all op. LEVEL can be a string or a number:
               • none/0error/1 (default)
               • warning/2info/3debug/4

See Also

       https://sysrepo.org (sysrepo home page)

       https://github.com/sysrepo/sysrepo (sysrepo Git repository)

Synopsis

sysrepocfgOPERATION [OPTIONS]

See Also