Questions tagged [libyang]

3 questions
0
votes
1 answer

Regular expression for a MAC Address with default value exception

From the regex pattern for specific type of MAC address is mentioned here. ^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$ While defining the MAC address variable under this pattern, how do I can define an exception of default value as empty string in yang…
suneet saini
  • 592
  • 3
  • 16
0
votes
0 answers

Cmake libssh.so.4: version LIBSSH_4_8_1 not found

I've been trying to build libyang on Ubuntu 22.04, and I keep running into this issue when running cmake: cmake: usr/local/lib/libssh.so.4: version `LIBSSH_4_8_1' not found (required by /lib/x86_64-linux-gnu/libcurl.so.4) I couldn't find anything…
Anatintti
  • 1
  • 1
0
votes
1 answer

unique constraints for Yang leaf-list across all nodes in a list

I have below yang models container PORT { description "PORT part of config_db.json"; list PORT_LIST { key "name"; leaf name { type string { length 1..128; } } …