libyang
libyang copied to clipboard
YANG data modeling language library
Hi , I applied a payload to delete config without including proper namespace. Device crashed with the below backtrace. Is it designed that way or should we return an error...
how to change xml to json by yanglint?Is there an example of this? Thanks!
Hello, I was recently trying to work with YANG nodes defined in extension instance. I was looking at [this libyang unit test](https://github.com/CESNET/libyang/blob/54bf9e2878eb14cb71fb992a0f3816d56e5abde2/tests/utests/data/test_new.c#L480) and I don't understand the format of the...
When libyang 2.1.55 is used to parse the yang file, the following error message is displayed: Regular expression "((((6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}).(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}|0))|(([1-9]\d{0,8})|([1-3]\d{9})|(4[0-1]\d{8})|(42[0-8]\d{7})|(429[0-3]\d{6})|(4294[0-8]\d{5})|(42949[0-5]\d{4})|(429496[0-6]\d{3})|(4294967[0-1]\d{2})|(42949672[0-8]\d{1})|(429496729[0-5])))( ((6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}).(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}|0))| (([1-9]\d{0,8})|([1-3]\d{9})|(4[0-1]\d{8})|(42[0-8]\d{7})|(429[0-3]\d{6})|(4294[0-8]\d{5})|(42949[0-5]\d{4})|(429496[0-6]\d{3})|(4294967[0-1]\d{2})|(42949672[0-8]\d{1})|(429496729[0-5]))){0,255})" is not valid ("": regular expression is too large)....
Hi, I have a question about how to parse an and traverse the resulting lyd_node. I have an rpc: ``` 1/0/5 ``` And the resulting ``` 1/0/5 multi-auth true ```...
I'm occasionally getting this failure: ``` 60/60 Test #59: yanglint_interactive ..............***Failed 10.90 sec Tests running in interp: /nix/store/mxcx6ldm6zsp2i9c503cxafk3nsr6wix-tcl-8.6.13/bin/tclsh Tests located in: /home/jkt/work/cesnet/gerrit/github/CESNET/libyang/tools/lint/tests/interactive Tests running in: /home/jkt/work/prog/_build/czechlight-clang16-asan-ubsan/libyang/tools/lint Temporary files stored in...
test-yang.yang: ```yang module test-yang { namespace "urn:company:params:xml:ns:yang:test-yang"; prefix test-yang; container a { leaf-list b { type string; } leaf-list c { type uint16; } } } ``` input.json: ```json {...
 When I compile code with -Wfloat-equal and find such warning: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 'num' is 'long double' type. Whether the precision...
If I use libyang.so.2.33.3 and libsysrepo.7.14.20 ,with command like "sysrepocfg -d "startup" --edit=test.xml" ,there should be one syntax error occured as belows: ``` libyang error: Text value "