15
I would commit your working directory to ensure that it exists in history before fetching. (ensure you are in the projects root folder)
git init
git add -A
git commit -m "my latest'
now we have it
| # Install the pysnmp library: | |
| # pip install pysnmp | |
| from pysnmp.hlapi import * | |
| # Define the SNMP parameters for the device: | |
| IP_ADDRESS = '192.168.1.1' | |
| SNMP_PORT = 161 | |
| COMMUNITY_STRING = 'public' |
| ### https://github.com/NetBrainAPI/NetBrain-REST-API-V10/blob/master/REST%20APIs%20Documentation/Authentication%20and%20Authorization/Login%20API.md | |
| ### Login to the Netbrain, Get the access token. authentication_id is when auth is not local i.e external tacacs/ad | |
| POST https://{{host}}/ServicesAPI/API/V1/Session | |
| Accept: application/json | |
| Content-Type: application/json | |
| { | |
| "username": "{{username}}", | |
| "password": "{{password}}", |
| import os | |
| from itertools import chain | |
| import requests | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| class CiscoAPIConsole(object): |
15
I would commit your working directory to ensure that it exists in history before fetching. (ensure you are in the projects root folder)
git init
git add -A
git commit -m "my latest'
now we have it