Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

YANG Models

Direct answer

YANG models come as IETF standard models, OpenConfig vendor-neutral models and vendor native models, such as Cisco-IOS-XE-native. Explore them with pyang or the YangModels GitHub repository.

When to use this

Use this when choosing between IETF, OpenConfig and vendor native YANG models.

First 30 seconds

1. YANG models: IETF (standard), OpenConfig (vendor-neutral), native (vendor-specific).

2. Mix as needed.

3. Track versions per OS release.

4. Test in lab.

5. Document chosen models.

Operational verification

requirements → model choice → payloads

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
YANG 1.1 data modeling
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformYANG 1.1 data modeling · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when choosing between IETF, OpenConfig and vendor native YANG models.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

The negative fixture should deliberately exercise risks such as revision mismatch, namespace ambiguity, wrong list keys, typedef/union coercion, ignoring must/when constraints and confusing schema existence with instance existence, choosing the cases most relevant to module-set/revision selection, vendor/standard model overlap, augment/deviation and binding automation to the model actually advertised by the device.

Step 2 Common mistakes Narrow the fault
  • Mixing OpenConfig and native models for the same config.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Models are IETF, OpenConfig or vendor native.
  • Support varies by release.
  • YangModels on GitHub collects them.
Key checks
  • Model sources (YangModels/yang GitHub, vendor) — repository
  • OpenConfig vs native coverage — gaps
  • Model version matrix per OS release — compatibility
ReferenceWhy it matters1 section · depth on demand

What it is

YANG models come from IETF/OpenConfig (vendor-neutral) and vendors (native). Use the device's capability list to see which modules and revisions it supports.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

YANG models describe the configuration and state of network devices as a structured tree, so automation can read and change devices through NETCONF, RESTCONF and gNMI with validated data instead of parsing CLI text.

Where to find and explore models:

SourceHow
DeviceNETCONF <get-schema>, capabilities in <hello>
Ciscogithub.com/YangModels/yang (vendor/cisco/xe/<release>)
OpenConfiggithub.com/openconfig/public
Toolspyang -f tree, YANG Suite, yanglint
pyang -f tree --tree-depth 4 Cisco-IOS-XE-native.yang | less
pyang -f tree -p . openconfig-interfaces.yang

Models change between software releases; use the models matching the device's software version when generating payloads.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docYANG 1.1 data modeling current

Authoritative/upstream documentation reviewed for bounded claims in YANG > YANG Models. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc7950 · confidence 94%
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

For module-set/revision selection, vendor/standard model overlap, augment/deviation and binding automation to the model actually advertised by the device, prefer typed fields and stable IDs over human presentation text.

Confirmation

Confirm action

Continue?