r16 - 2009-01-19 - 19:37:36 - LadaLhotkaYou are here: TWiki >  Main Web > YangExamples


This is the standard IF-MIB from RFC 2863.

The following is an example of how YANG's augment statement can be used to declare a sparse extension.

SNMPv2-TC and IANAifType-MIB

YANG Standard derived types

These are the standard YANG modules, from the specification.

NETCONF Monitoring Data Model

This example is the monitoring data model from draft-ietf-netconf-monitoring-03.txt


This is an example of how YANG's submodules can be used to structure a somewhat larger module into logical units. The example is the configuration of a set of services on a Linux-based networking device. There is a master module and a set of submodules:

  • execd.yang: The master module which defines the namespace and includes all submodules
  • execd-types.yang: A submodule which contains reusable types. Several other submodules include this one.
  • execd-interfaces.yang: A submodule for configuration and status of network interfaces.
  • execd-routes.yang: A submodule for configuration of static routes.
  • execd-syslog.yang: A submodule for configuration of logging to remote syslog servers.
  • execd-dns.yang: A submodule for configuration of the DNS resolver.
  • execd-ntp.yang: A submodule for configuration and status of the NTP daemon.


This is the data model for configuration data of the FlowMon probe. The YANG model tries to be as close as possible to the original RELAX NG schema from which it was manually converted.

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r17 < r16 < r15 < r14 < r13 | More topic actions...
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback