YANG Data Modelling Flashcards
which RFC defines YANG
6020
what are the analogies for YANG
XML schemas and SNMP SMIs
YANG for RESTCONF is what for SNMP
MIB
YANG models are publicly available
true, can be found from GitHub
what is the content of YANG model
header info, imports&includes, type defs, config&operational data declar., action¬ific. declar
what YANG models consist of
YANG modules
what is in the header
author, version, namespace, prefix
what should be globally unique
namespace string and version
what is a leaf
it is one value without children, e.g., IP address
what is a leaf-list
one value with no children, but multiple instances, e.g, DNS server list
what are the non-leaf type nodes
containers and lists
what is the function of containers
to organize data like put together access-timeout duration and number of re-tries
what are lists
keyed sets of data, e.g. login credentials
what is typedef
creates custom types like ip address for both ipv4 and v6
what is choice
defines a tree of alternatives (case)
what is grouping
groups together re-usable collection of nodes
what is leafref
element reference
what is rpc
defines what is the input and what expects as an output
how import works
reference data sets from other namespaces
how include works
directly pulls data sets to current namespace
what happens when fragment is included
it cannot be included in any other module or namespace
what YANG uses to organize data models
modules and sub-modules
how module can import and include
module can import from other modules and include sub-modules