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)