YANG Data Modelling Flashcards

1
Q

which RFC defines YANG

A

6020

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what are the analogies for YANG

A

XML schemas and SNMP SMIs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

YANG for RESTCONF is what for SNMP

A

MIB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

YANG models are publicly available

A

true, can be found from GitHub

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is the content of YANG model

A

header info, imports&includes, type defs, config&operational data declar., action&notific. declar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what YANG models consist of

A

YANG modules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is in the header

A

author, version, namespace, prefix

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what should be globally unique

A

namespace string and version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is a leaf

A

it is one value without children, e.g., IP address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is a leaf-list

A

one value with no children, but multiple instances, e.g, DNS server list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what are the non-leaf type nodes

A

containers and lists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is the function of containers

A

to organize data like put together access-timeout duration and number of re-tries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what are lists

A

keyed sets of data, e.g. login credentials

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what is typedef

A

creates custom types like ip address for both ipv4 and v6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what is choice

A

defines a tree of alternatives (case)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what is grouping

A

groups together re-usable collection of nodes

17
Q

what is leafref

A

element reference

18
Q

what is rpc

A

defines what is the input and what expects as an output

19
Q

how import works

A

reference data sets from other namespaces

20
Q

how include works

A

directly pulls data sets to current namespace

21
Q

what happens when fragment is included

A

it cannot be included in any other module or namespace

22
Q

what YANG uses to organize data models

A

modules and sub-modules

23
Q

how module can import and include

A

module can import from other modules and include sub-modules