The modpath parameter for netconfd-pro specifies the directory search path for YANG and YIN files. The modpath parameter overrides the YUMAPRO_MODPATH environment variable.

The modpath parameter can be invoked via the command line when starting up netconfd-pro. The following command instructs netconfd-pro to load YANG modules from three directories,

~/Dev/YANG/modules, ~/DEV/YANG/modules/test, and ~/DEV/YANG/modules/saved:


#
user@system> netconfd-pro --modpath="~/Dev/YANG/modules:~/DEV/YANG/modules/test:~/DEV/YANG/modules/saved"


The modpath can also be set in the configuration file of netconfd-pro,

default location is /etc/yumapro/netconfd-pro.conf:


#### leaf modpath
#
#  Internal file search path for YANG files.
#  e.g., modpath "~/modules:/some/path:../another/path"
#  Refer to user manual for complete module search path
#
# no default for modpath
modpath "~/Dev/YANG/modules:~/DEV/YANG/modules/test:~/DEV/YANG/modules/saved"



Unless the modpath parameter is used, the YUMAPRO_MODPATH environment variable will be the default search path for YANG and YIN files.


Please see the Solution "How do I control where YANG modules are found by netconfd-pro server and yangcli-pro client?" for more info on the YUMAPRO_MODPATH environment variable


Related parameters: