DevNet Associate (DEVASC) v1.0Infrastructure and AutomationMedium
A network operator wants to retrieve specific operational data (e.g., interface statistics) from a Cisco IOS XE device using a programmatic interface. The data needs to be structured and validated against a schema. Which technology, often used with NETCONF or RESTCONF, defines the structure and semantics of configuration and operational data?
- AJSON Schema
- BYANG
- CXML Schema
- DSwagger/OpenAPI
Show answer & explanationAnswer & explanation
Correct answer: B. YANG
YANG (Yet Another Next Generation) is a data modeling language used to model configuration and state data, as well as RPCs and notifications for network devices. It provides a formal, machine-readable way to define the structure and semantics of data, which can then be validated and exchanged using protocols like NETCONF or RESTCONF.
Why the other options are wrong
- A. JSON Schema defines JSON data structures but is not the primary modeling language for network devices with NETCONF/RESTCONF.
- C. XML Schema (XSD) defines XML structures but is not the primary modeling language used by NETCONF/RESTCONF for network device data.
- D. Swagger/OpenAPI defines RESTful APIs, not the underlying data models for network devices in this context.
YANG
YANG (Yet Another Next Generation) is a data modeling language used to define the structure and semantics of configuration, state data, RPCs, and notifications for network devices.
- Data modeling language (IETF RFC 6020, 7950).
- Defines structure and semantics of network data.
- Used with NETCONF and RESTCONF.
- Modular and extensible.
Memory trick: YANG models network data's structure and meaning.