Questions tagged [yang]

YANG (Yet Another Next Generation) is a modular data modelling language for data used by network management protocols. It is defined in [RFC 7950](https://tools.ietf.org/html/rfc7950).

YANG is a data modeling language used to model configuration data, state data, Remote Procedure Calls, and notifications for network management protocols.

YANG was originally designed to model data for the NETCONF protocol. A YANG module defines hierarchies of data that can be used for NETCONF-based operations, including configuration, state data, RPCs, and notifications. This allows a complete description of all data sent between a NETCONF client and server. YANG may also be used with protocols other than NETCONF.

To the extent possible, YANG maintains compatibility with the Simple Network Management Protocol's (SNMP's) SMIv2. SMIv2-based MIB modules can be automatically translated into YANG modules for read-only access.

Further reading:

55 questions
0
votes
1 answer

pip install libyang fails with exit code 2

Trying to install libyang but it gives me this error: error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2 I tried to uninstall and re install Visual…
0
votes
0 answers

Opendaylight ODL java JSON XML binding problem

i'm using yang-tools of ODL to generate java classes from YANG models. My project is a vanilla JAVA so i'm working outside opendaylight framework. Starting from the following YANG Interfaces class is generated with all of it's dependency module…
user1066888
  • 136
  • 1
  • 11
0
votes
0 answers

NoClassDefFoundError in org.opendaylight.yangtools.yang.parser.rfc7950.reactor.ServiceLoaderState$XPath

I use org.opendaylight.yangtools 9.0.7 org.opendaylight.yangtools yang-common 9.0.7
0
votes
1 answer

YANG , Telemetry sensor path

i am using this module " Cisco-IOS-XR-pfi-im-cmd-oper.yang" to get interface counts (UP , Down , Admin-Down), but i am stuck with symbol *[] , i dont understand what to put inside if there is no keys inside list brackets , +--ro node-type-sets | …
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
1 answer

RestConf in Cisco Device uri Keypath not found for /ip/prefix-lists/prefixes/name

I am trying to execute below restconf API Get Request and getting error "uri keypath not found". The Path is present in Yang module https:///restconf/data/Cisco-IOS-XE-native:native/ip/prefix-lists/prefixes/name --- Response { …
Alok Kumar
  • 49
  • 10
0
votes
0 answers

Custom yang module usage (ConfD_basic 7.8.3)

I have written 3 function get_temperature(),get_ddr() and get_cpu_load() to calculate temperature,ddr usage and cpu load of an ubuntu system.These functions store the value into a structure.I have also written a custom YANG module…
nanthi
  • 11
  • 3
0
votes
0 answers

Interacting with MIB file for DSRC wave stack in C language Body:

I am working on a final year project where I am developing a DSRC wave stack in C language. As a part of this project, I need to implement WME of 1609.3 and interact with the MIB file to get and set the necessary parameters for the stack. This is my…
0
votes
0 answers

Netconf returns bad-element: config

The configuration: Loopback138 TEST_SPSJM
user3603644
  • 95
  • 1
  • 7
0
votes
1 answer

Cisco Yang Suite - NGINX HTTP Host Header Error

I installed Cisco Yang Suite using this repo After running through the bash script and it comes up I get HTTP 400 Bad Request from a remote machine and in the debug, I get the bellow error. docker-yangsuite-1 | [31/Jan/2023 10:27:50] ERROR…
0
votes
1 answer

YANG Input based on another input

I have to take an input in rpc only in one previous input is taken. For Example if we input value for field a then value for field b is compulsory. I am new to it, I tried giving mandatory true for the last value.
0
votes
1 answer

In YANG, Refining group not triggering error

I’ve added a “refine” and “must” when “uses” refers to a group. An example of how it’s being used is as follows : uses bird-config { refine feathers-count { …
IPbean
  • 1
0
votes
1 answer

how to write xml instance data for a given yang file

I am learning netconf and yang. One thing which confuses me is, how to write an XML instance data for a given yang schema. Is there a tool which can create a sample instance data? Where I can just put my own values without worrying about nodes, and…
myquest4 sh
  • 371
  • 4
  • 16
0
votes
1 answer

Query on yang deviation

I am new to yang deviations. I wrote a deviation like below but I am not sure if the deviation is effective. Is it possible to print a text(value of xpath) in must statement for debugging purposes? Please help. deviation "/ns:direction" { …
Beginner
  • 73
  • 3