YumaPro User Manual


Add to my manuals
57 Pages

advertisement

YumaPro User Manual | Manualzz

YumaPro User Manual container yangcli-pro {

ncx:cli;

// all the yangcli-pro CLI parameters

}

If this extension is present, then netconfd-pro will ignore the container when loading the database object definitions.

Only the program with the same name as the container will use the CLI parameter definition.

4.7.3 ncx:default-parm Extension

The ncx:default-parm extension is used within a container with an ncx:cli extension, or within an 'input' section of an

RPC operation definition. It is defined in yuma-ncx.yang.

If no parameter name is found when processing CLI parameter input, and the ncx:default-parm extension is present in the container or RPC input being processed, then the specified parameter name will be used instead of generating an error. The value must be valid for the parameter syntax, according to its YANG definition. This means that for the default parameter, only the <value> component of the complete parameter syntax may be used, as well as the normal forms.

container yangdump-pro {

ncx:cli;

ncx:default-parm module;

// all the yangdump-pro CLI parameters

}

When invoking the yangdump-pro program, the default CLI parameter is --module. These two command lines are equivalent:

mydir> yangdump-pro –-module=test1 –-module=test2

mydir> yangdump-pro test1 test2

A string that does not start with any dashes will still be tried as a parameter name, before trying the default parameter.

If the value used for a default parameter conflicts with another parameter name, then the normal form must be used, instead of this form.

mydir> yangdump-pro log-app test1

Even if there was a module named 'log-app', it would not be tried as a --module parameter, since it also matches the

--log-append parameter.

Note: the default parameter form is can be used in conjunction with shell wildcard characters, depending on the shell.

Version 15.10-16 Page 47

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents