r39 - 2008-02-18 - 21:05:52 - MartinBjoerklundYou are here: TWiki >  Main Web > WebHome

Welcome to the YANG Main web


2008-02-18: draft-bjorklund-yang-requirements-00 published. See YangDocuments for more info.

2008-02-06: draft-bjorklund-netconf-yang-02 published. The pyang validator is updated to this version.


Today, the NETCONF protocol, specified in RFC4741 lacks a standardized way to create data models. Instead, vendors are forced to use proprietary solutions. In order for NETCONF to be an interoperable protocol, models must be defined in a vendor-neutral way. YANG provides the language and rules for defining such models for use with NETCONF.

YANG is a data modeling language used to model configuration and state data manipulated by the NETCONF protocol, NETCONF remote procedure calls, and NETCONF notifications.

This is a simple example of what a YANG module looks like:

module acme-system {
    namespace "http://acme.example.com/system";
    prefix "acme";

    organization "ACME Inc.";
    contact "joe@acme.example.com";
        "The module for entities implementing the ACME system.";

    revision 2007-11-05 {
        description "Initial revision.";

    container system {
        leaf host-name {
            type string;
            description "Hostname for this system";

        leaf-list domain-search {
            type string;
            description "List of domain names to search";

        list interface {
            key "name";
            description "List of interfaces in the system";
            leaf name {
                type string;
            leaf type {
                type string;
            leaf mtu {
                type int32;
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r71 | r41 < r40 < r39 < r38 | 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