0% found this document useful (0 votes)
56 views3 pages

Netconf & Yang

Engineering notes

Uploaded by

Manglesh Ranjan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views3 pages

Netconf & Yang

Engineering notes

Uploaded by

Manglesh Ranjan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Background

 NETCONF is an IETF (Internet Engineering Task Force) configuration management


protocol and YANG is its data modeling language.

 In response to SNMP/SMI shortcomings for managing configuration

o Lack of support for simple things like backup-and-restore of element


configuration.

o No concept of transactions.

o Many inherent limitations in SMI (e.g. label length).

 NETCONF is an IETF network management protocol designed to support


management of configuration, including:

o Distinction between configuration and state data.

o Multiple configuration data stores (candidate, running, startup).

o Configuration change validations.

o Configuration change transactions.

o Selective data retrieval with filtering.

o Streaming and playback of event notifications.

o Extensible remote procedure call mechanism.

o The Protocols (SSH, BEEP) used provide end to end connectivity and reliable
delivery of messages.

NETCONF Layering Model


Basic NETCONF Operations
o Get configuration <get-config> – Retrieve all or part of a specified configuration
from a named data store.

o Get all information <get> – Retrieve running configuration and device state
information .

o Edit configuration <edit-config> – Loads all or part of a specified configuration to the


specified target configuration .

o Copy configuration <copy-config> – Create or replace an entire configuration


datastore with the contents of another complete configuration datastore.

o Delete configuration <delete-config> – Delete a configuration datastore (not


applicable to running) .

o Lock and unlock <lock>, <unlock> – Short-lived lock and unlock of the configuration
system of a device .

o Close and kill session <close-session>, <kill-session> – Graceful (close) or forced


(kill) termination of a NETCONF session

 YANG is a data modeling language designed to write data models for the NETCONF
protocol. It provides the following features:

o Human readable, and easy to learn representation.

o Hierarchical configuration data models – Reusable types and groupings


(structured types).

o Extensibility through augmentation mechanisms.

o Supports definition of operations (RPCs).

o Formal constraints for configuration validation.

o Data modularity through modules and sub-modules.

o Well defined versioning rules.


YANG Node Types
 Leaf Nodes – Contains simple data structures such as integer or a string. leaf has exactly
one value of a particular type and no child nodes.

 Leaf-list Nodes – Is a sequence of leaf nodes with exactly one value of a particular type
per leaf.

 Container Nodes – used to group related nodes in a subtree. A container has only child
nodes and no value. A container may contain any number of child nodes of any type
(including leafs, lists, containers and leaf-lists).

 List Nodes – Defines a sequence of list entries. Each entry is like a structure or a record
instance, and is uniquely identified by the value of it’s key leafs. A list can define
multiple key leafs and may contain any number of child nodes of any type.

Difference b/n SNMP & NETCONF

You might also like