ConfD User Community

Yanger compilation error

Hi,

Is there any official code for yanger to use it to write customized plugin files?
I am using code from https://github.com/mbj4668/yanger, Can this be used?
Getting below error while compiling the code:

erlc -DVSN=\"1.0\" -pa ../../yanger/ebin -Werror +debug_info -o ../ebin yang_xpath.erl
yang_xpath.erl:39: syntax error before: '{'
make[1]: *** [../ebin/yang_xpath.beam] Error 1

Thanks,
Karthik

Hi,

Is there any official code for yanger to use it to write customized plugin files?

No, not that Cisco supports/provides to my knowledge.

I am using code from https://github.com/mbj4668/yanger, Can this be used?

That is the right place to find open sourced yanger. As far as I know, it is actively maintained but it has no connection with Cisco product line.

Getting below error while compiling the code:

What version of Erlang/OTP are you using?

Thanks for the reply
Below is the version i am using:

erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().'  -noshell
"R16B03-1"

Hello Karthik,

OTP Release R16B03-1 is pretty old one. If I am not mistaken Erlang maps support introduced in 17.0 release. Your compilation gives error where the function spec specifies a map type.

Regards,
Erdem