All YumaPro SDK programs support configuration parameters that control how the program will operate.
These parameters can be entered at the program command line or in a configuration file.
Default Configuration File
The default configuration file for each program has the following format:
/etc/yumapro/<program>.conf
Program | Default Configuration File |
netconfd-pro | /etc/yumapro/netconfd-pro.conf |
yangcli-pro | /etc/yumapro/yangcli-pro.conf |
yangdump-pro | /etc/yumapro/yangdump-pro.conf |
yangdump-sdk | /etc/yumapro/yangdump-pro.conf |
Using a Non-Default Configuration file
The --config parameter can be used in the command line to select a non-default configuration file
andy@builder:~$ netconfd-pro --config=/home/lab/configs/test14.conf
Ignoring the Default Configuration File
The --no-config parameter can be used in the command line to skip the default configuration file, if it exists
andy@builder:~$ netconfd-pro --no-config
Overriding Configuration File Parameters
The YumaPro programs will gather command line parameters before configuration file parameters.
For leaf parameters:
- The command line parameter will be used in the event the same parameter is present in the configuration file.
- A warning message will be generated indicating that the configuration file parameter value will not be used, such as the example below for the "superuser" parameter
andy@builder:~$ netconfd-pro superuser=andy factory ... Warning: Parameter 'superuser' already exists. Not using new value
For leaf-list parameters:
- The command line parameters will be used in addition to the configuration file parameters. The --module parameter is an example of a leaf-list parameter that is often used this way.