Skip to content

Instantly share code, notes, and snippets.

View steele-ntwrk's full-sized avatar
🎯
Focusing

Matt Steele steele-ntwrk

🎯
Focusing
View GitHub Profile
@steele-ntwrk
steele-ntwrk / DEVNET - POSTMAN Basics.md
Last active November 1, 2021 01:03
POSTMAN basics

DEVNET - POSTMAN Basics

Creating Variables in postman collection

var jsonData = JSON.parse(responseBody);
pm.collectionVariables.set("token", jsonData.imdata[0].aaaLogin.attributes.token);

DEVENT - RESTCONF

RESTCONF connects to infrastructure using REST(HTTP/S) API's using common HTTP methods, it also allows the use of YANG Data models with JSON Data formatting.

  • GET: Retrieve Data
  • POST - Creates Data
  • PUT - Updates Data
  • PATCH - Replaces DATA
  • DELETE - Removes Data
@steele-ntwrk
steele-ntwrk / DENET CREATE - Intro.md
Last active October 30, 2021 05:24
DEVNET Create

DEVNET Create Notes

Automation Benifits

  1. Reduces Human Error

  2. Improve Network Resilience

  3. Improve times of changes to network

NETCONF

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:

  1. GET Opertaional State
@steele-ntwrk
steele-ntwrk / DEVNET- Enviroment Setup.md
Last active October 19, 2021 09:13
DEVNET Enviroment Setup

DEVNET - Enviroment Setup

This is a check list for setting up a DEVNET Enviroment to assist with labbing.

  1. Create a Github

    • Video Tutorial - Ben Finkel
  2. Setup VS Code

    • Getting Started Link - Ben Finkel
  • Extenisions - Ben Finkel/Knox
@steele-ntwrk
steele-ntwrk / DEVNET - Data Models.md
Last active October 19, 2021 23:53
Cisco Data Models

Data Models

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:

YANG Data Model

DEVNET - Network Progammability and Automation Fundamentals

This section will cover basic information about network progammability and automation.

Network Progambility vs Automation

Network Programmability is using scripts to perform some tasks. There are 3 main compotents:

  1. Application: python
  2. API: REST (JSON/XML)

DEVNET - REST API

What is REST?

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.

@steele-ntwrk
steele-ntwrk / DEVNET - Parsing Data.md
Last active October 3, 2021 12:09
DEVNET - Parsing Data

DEVNET - Parsing Data Formats

Parsing JSON

To parse JSON str into python use the command json.loads(JSONFILENAMEKEY), loads stands for load str.

Example JSON str parsing

import json

DEVNET - Data Formats

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) -