Presentation is loading. Please wait.

Presentation is loading. Please wait.

Simple tutorial. Yang - Modules and submodules  Header statements yang-version, namespace, prefix  Linkage statement import and include  Meta information.

Similar presentations


Presentation on theme: "Simple tutorial. Yang - Modules and submodules  Header statements yang-version, namespace, prefix  Linkage statement import and include  Meta information."— Presentation transcript:

1 Simple tutorial

2 Yang - Modules and submodules  Header statements yang-version, namespace, prefix  Linkage statement import and include  Meta information organization, contact  Revision history revision

3 Yang - Modules and submodules module besip-module { namespace "besip"; prefix acme; import “my-types" { prefix mt; } include “some-submodule"; organization “Besip Inc."; contact description “Example module"; revision { description "Initial revision."; } … }

4 Yang - Statements  basic leaf leaf-list container list  special must when augment

5 Yang - Types  Integral {,u}int{8,16,32,64}  String string, enumeration, boolean  Binary data binary  Bit fields bits  References instance-identifier, keyref  Other typedef, union, grouping

6 Yang - Example YANG list user { key name; leaf name { type string; } leaf uid { type uint32; } leaf full-name { type string; } leaf class { type string; default viewer; } NETCONF glocks Goldie intruder snowey Snow free-loader rzull Repun

7 Yang - RPC YANG rpc activate { input { leaf inputText { type string; } output { leaf status { type string; } NETCONF some text current status

8 Netconf  netconfd program is a NETCONF-over-SSH server implementation  driven directly by YANG files  robust and secure database interface using standard NETCONF protocol operations  Supports,, and databases  support for database locking, editing, validation  subtree and full XPath filtering  Complete XML 1.0 implementation with full support for XML Namespaces

9 Netconf – DBs (XML document)

10 Netconf - Session  Start session Exchanging tag elements first-capability  End session

11 Netconf - Requests  Operation requests ge-2/3/0

12 Netconf - Requests  Configuration requests – get config

13 Netconf - Requests  Configuration requests – edit config admin Administrator superuser

14 Netconf - Operations  Retrieve or state data.  Retrieve all or part of a configuration.  Edit the target configuration.  Copy an entire configuration.  Delete a configuration.  Activate edits in.  Cancel a confirmed-commit operation.  Discard edits in.  Load a YANG module.  Retrieve a YANG or YIN module definition file.  Start receiving notifications.

15 Netconf - Operations  Lock a database.  Unlock a database.  Lock part of the database.  Unlock part of the database.  Validate a database.  Retrieve session customization parameters.  Terminate the current session.  Terminate a NETCONF session.  Set the session customization parameters.  Set the logging verbosity level.  Restart the server.  Shutdown the server.


Download ppt "Simple tutorial. Yang - Modules and submodules  Header statements yang-version, namespace, prefix  Linkage statement import and include  Meta information."

Similar presentations


Ads by Google