Libyang errors while running frr ospfd

I have compiled frr-7.1 and libyang-1.0.r3 for openwrt arm.
While running the ospfd process, I am getting following errors.

root@my:/# ospfd -d -A 127.0.0.1
2019/09/26 06:12:08 errors: OSPF: libyang: Processing "metadata" extension plugin failed,implementation collision for extension annotation from module ietf-yang-metadata@2016-08-05.
2019/09/26 06:12:08 errors: OSPF: libyang: Processing "nacm" extension plugin failed,implementation collision for extension default-deny-write from module ietf-netconf-acm@2012-02-22.
2019/09/26 06:12:08 errors: OSPF: libyang: Processing "yangdata" extension plugin failed,implementation collision for extension yang-data from module ietf-restconf@2017-01-26.
2019/09/26 06:12:08 errors: OSPF: libyang: Processing "user_inet_types" extension plugin failed,implementation collision for extension ip-address from module ietf-inet-types@2013-07-15.
2019/09/26 06:12:08 errors: OSPF: libyang: Processing "user_yang_types" extension plugin failed,implementation collision for extension date-and-time from module ietf-yang-types@2013-07-15.
2019/09/26 06:12:08 errors: OSPF: libyang: Invalid arguments (ly_ctx_get_node()).
2019/09/26 06:12:08 warnings: OSPF: [EC 100663321] nb_load_callbacks: unknown data path: 0���
                                                                                             �  
2019/09/26 06:12:08 errors: OSPF: [EC 100663327] missing 'create' callback for '/frr-interface:lib/interface'
2019/09/26 06:12:08 errors: OSPF: [EC 100663327] missing 'destroy' callback for '/frr-interface:lib/interface'
2019/09/26 06:12:08 errors: OSPF: [EC 100663327] missing 'modify' callback for '/frr-interface:lib/interface/description'
2019/09/26 06:12:08 errors: OSPF: [EC 100663327] missing 'destroy' callback for '/frr-interface:lib/interface/description'
2019/09/26 06:12:08 errors: OSPF: [EC 100663329] nb_init: failed to validate northbound callbacks: 4 error(s)
root@my:/# 

whereas same versions of frr and libyang are working properly on centos7 VM.

Am I missing anything while compiling for openwrt.

Thanks,
Srujana.

brother how did you compile the image with frr and libyang because even i am getting error while make a build where it asks me to update libyang file to 16 so could you tell how to pull the frr into feed ?
ps
i am using 18.06.5 stable build for my router

ping @lucize

use the master libyang, should work and is updated to 1.x
but I think I also wrote this on frr github

i am kind news to this so what is master libyang ?

use libyang from the master tree, read about building yourself an image from sdk, you also have the opportunity to use frr 7.2 which has important ospf fix related to p2p tunnels, if you can't use the master tree, use the 18.06.5 tree and just copy the frr and libyang from master
wiki is your friend

Lucize i did copy the frr into my feed using
git fetch origin pull/319/head
git read-tree --prefix=frr/ -u FETCH_HEAD:frr
this command has been provided in this link :- http://docs.frrouting.org/projects/dev-guide/en/latest/building-frr-for-openwrt.html#prepare-build-environment
so you want me look in master wiki which 19.0 something rc in the git branch
ps can you tell me what is master wiki ? if it not to much

as I said in the frr github issue, that documentation is obsolete and they didn't commit my message in telling people not to use it, the package is now in master in package feed and is up to date, I can also provide a makefile for current 7.3-dev if you want, so just ignore the makefile from routing folder and use the existing frr and libyang folder from master, don't know if is backported to 19-rc



so lucize what i have to do is to first clone the openwrt repo i am mentioning the command:-

1)git clone https://git.openwrt.org/openwrt/openwrt.git
2)cd openwrt
3)git checkout (in my case i had chosen 18.06.5 for my phicom)
4)then i will clone this repo that you have provided me and update the feed using this
./scripts/feeds update -a && ./scripts/feeds install -a

update the feeds for 18.06.5 and just copy the two folders from the master feeds, don't use the master feeds if you don't want all the new things from it, just the libyang folder and frr folder

1 Like

Ok will do that

Lucize your method work thank you