我在virtualbox中安装了ubuntu 16.04,然后在里面安装了libnetconf和netopeer,我准备在libnetconf中添加yang模块,步骤如下:
1、$ pyang -f yin /home/bob/YANG_modules/toaster.yang -o /home/bob/YANG_modules/toaster.yin
2、# netopeer-manager add --name toaster --model /home/bob/YANG_modules/toaster.yin --datastore /usr/local/etc/netopeer/modules.conf.d/toaster.xml
添加好模块之后我使用netopeer-server启动服务器,结果报错了,错误如下:
netopeer-server[2400]: Creating datastore failed (Datastore already exists).
netopeer-server[2400]: Invalid datastore.
netopeer-server[2400]: Callback for path /A:netopeer/A:modules/A:module/A:enabled failed (1).
netopeer-server[2400]: Failed perform initial copy of startup to running.
netopeer-server[2400]: Device initialization of module Netopeer failed.
netopeer-server[2400]: Starting necessary Netopeer plugin failed!
我不知道会不会是我添加YANG模块的方式有误。
各位大神,求助啊!