This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| COLOR_GIT_CLEAN='\[\033[1;30m\]' | |
| COLOR_GIT_MODIFIED='\[\033[0;33m\]' | |
| COLOR_GIT_STAGED='\[\033[0;36m\]' | |
| COLOR_RESET='\[\033[0m\]' | |
| RED='\[\e[0;31m\]' | |
| function git_prompt() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| import socket | |
| import json | |
| from requests.auth import HTTPBasicAuth | |
| import requests | |
| def get_ip(device): | |
| """ | |
| get_ip: Obtains the IP address of device |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| uimws: Calls CA UIM REST API to retrieve QOS values for monitoring | |
| validation | |
| """ | |
| import logging | |
| from requests.auth import HTTPBasicAuth | |
| import requests | |
| def chk_qos(ws_info, qos, device, target): |