var jsonData = JSON.parse(responseBody);
pm.collectionVariables.set("token", jsonData.imdata[0].aaaLogin.attributes.token);NETCONF was developed in 2006 in RFC 4741 and its sole purposed was to replace SNMP. Although it wasn't effective until YANG data models were introducted in 2010 and NETCONF was revised in RFC6241.
NETCONF is a network protocol used to transmit data from network devices to another system and vice versea, it's built on top of ssh however uses port TCP 830 and uses XML Encoding Data format.
3 Key things it can do is:
- GET Opertaional State
Data Models are used to format and structure data, this ensures data adheres to a structure so they are readable and can be exchanged between different systems.
Modules relates to an object with Leafs relating to charchteristics of this object for examle:
module Person: leaf Height:
This section will cover basic information about network progammability and automation.
Network Programmability is using scripts to perform some tasks. There are 3 main compotents:
- Application: python
- API: REST (JSON/XML)
REST stands for Representational State Transfer and is a architure that provides guidelines for the structure and organisation of an API. REST is not a protocol and commonly uses the followintg data formats JSON, XML, YAML, MD, CSV and plain text.
RESTful API is a Application Programe Interface to a HTTP/Web Resource using a stateless client server session.
Data formats are used to serialize data into common formats that can be maniuplated and transmitted between systems. The most common data formats are plain text data formats, these combine human readability and computer readable.
The most common plain text data formats are:
- Java Script Object Notation(JSON) -
- Yet Another Markup Language(YAML) -
- eXtensible Markup Language(XML) -