EditWYSIWYGAttachPrintable
r32 - 2007-11-05 - 11:33:29 - JoakimGYou are here: TWiki >  Main Web > WebHome

Welcome to the YANG Main web

YANG is a data modeling language for NETCONF.

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";
    description
        "The module for entities implementing the ACME system.";

    revision 2007-06-09 {
        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";
        }

        container login {
            leaf message {
                type string;
                description
                    "Message given at start of login session";
            }

            list user {
                key "name";
                leaf name {
                    type string;
                }
                leaf full-name {
                    type string;
                }
                leaf class {
                    type string;
                }
            }
        }
    }
}

Congratulations, you have finished the TWiki installation. If you want to learn more about TWiki then visit the TWiki web. Please ensure that the read/write permissions for each web on your site match your access control policies (see SitePermissions and TWiki.TWikiPreferences). Replace this text with a description of your new TWiki site.

Main Web Utilities

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r71 | r34 < r33 < r32 < r31 | More topic actions...
 
YANG
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