installing the yang files with sysrepo
biswajit84 opened this issue · comments
Hi,
We have several yang files to be installed with sysrepo.
So to install the yang files, is there any other method available other than executing sysrepoctl -i <File-name>.yang
.
Or we have to load each yang file, only through sysrepoctl call only.
Is there any way if we keep all the yang files in sysrepo path, then it will get loaded automatically.
Regards,
Biswajit
sysrepoctl
supports installing several modules in one command so that is what I suggest you do. It is intentional you have to explicitly specify the modules you want to have installed (implemented) so no automatic loading is performed. However, it is up to you how you install them exactly, all sysrepoctl
does is call an API function that installs the modules.
Hi,
As I am new to this .can you please guide me how can sysrepoctl can install several yang files present in one directory at once.
Regards,
Biswajit
No, no matter what it should always be easily understandable based on a tool help how to use it. So just run sysrepoctl -h
and find out on your own.