r35 - 2007-11-05 - 13:53:44 - MartinBjoerklundYou are here: TWiki >  Main Web > WebHome

Welcome to the YANG Main web

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 a 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 | r37 < r36 < r35 < r34 | 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