CDL - Section 10 - Employing Model-Driven Programmability Flashcards

1
Q

REVIEW: Protocols v Data Models

One misconception is that data models are used to exchange data, which is not the case. Instead, protocols such as Network Configuration Protocol (NETCONF) and RESTCONF send JSON/XML encoded documents, that are governed by a given model.

A

Models focus on what is the content and not so much on how it is exchanged – that is what protocols do i.e RESTCONF/NETCONF.

Data Models - define the syntax and semantics, including constraints of working with the API; the 2 main models are XML and JSON

Protocols - how the data is exchanged; the 3 core protocols are NETCOFN, RESTCONF, gRPC

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

What is NETCONF?

What protocol does NETCONF travel over?

A

Provides a formal and generally interoperable means of opening a secure management session with a network device.

Exposes an API for querying data and performing config changes.

TLS or SSH, but mainly & more commonly over SSH

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

What are all NETCONF operations encoded with?

A

XML

They are also described in the YANG language.

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

What is YANG?

A

YANG is the standardized modeling language used with NETCONF

It is used to define configuration and operational state data models, operational functions, and notifications that are transported within NETCONF commands.

YANG is used to model both configuration data and state data of network elements

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

What is RESTCONF?

What encoding does it support?

A

→ RESTCONF is a REST-like protocol that provides a mechanism over HTTP for accessing data that is defined in NETCONF datastores and modeled in YANG.

RESTCONF is a subset of NETCONF that exposes YANG Models via a REST API.

While NETCONF uses XML encoding only, RESTCONF supports both JSON and XML.

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

REVIEW: Netconf v Restconf

RESTCONF does not support all the NETCONF operations, but it supports most. Granular commands like config locking, startup config, confirmed commits, etc. are not supported.

A

While NETCONF only uses/supports XML encoding, RESTCONF supports both JSON and XML.

NETCONF + HTTP/HTTPS = RESTCONF

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

What is a Software Development Kit (SDK)?

What is a Yang Dev Kit (YDK)?

A

SDK - A collection of useful tools that are used for developing software or applications.

(YDK) - The main goal of YDK is to reduce the learning curve for interfacing with YANG-based APIs, such as NETCONF and RESTCONF.

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

What is Model-Driven Programmability?

A

Programmability that fully decouples transport, protocol, and encoding from the model being used.

The model then becomes the definition of what can be done on a device that is completely decoupled from the encoding method.

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

What is NXOS Programmability?

What is it typically used for?

A

The Cisco NX-OS open platform allows for programmatic access to Cisco Nexus platforms.

It is used for Day0 provisioning, config management, pulling data, etc.

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

What is NX-API CLI?

A

RPC-style API that allows for programmatic access to Nexus switches.

→ Allows admins to have the CLI available off-box; i.e traditional methods are managing the DC switching via CLI on the box

→ It sends commands to the device, wrapped in HTTP and HTTPS, but receives structured data back

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

What is NX-API REST?

A

The next-generation API for the Cisco Nexus platform in that it supports sending and receiving objects in the API payload.

No CLI involved (like with the NX-API CLI), it only works with structured data back & forth – XML or JSON wrapped in HTTP/HTTPS.

** JSON/XML payloads are sent to the device in the HTTP request and received from the device in the response.

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

What is a Management Information Tree (MIT)?

A

All information about the switch, including configuration and state data, is stored in a hierarchical tree in the form of objects.

Every object in the tree can be directly accessed via the REST API.

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

What are the 3 methods supported by NX-API REST?

A

GET
DELETE
POST

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