r8 - 2007-11-19 - 09:08:21 - MartinBjoerklundYou 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-notification-11.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.
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r17 | r10 < r9 < r8 < r7 | 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