This file contains 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/sh | |
# Track which Meraki WAP you are connected to in real-time | |
while `true`;do | |
date +"%H:%M:%S - `curl --connect-timeout 5 -kL http://ap.meraki.com/index.json 2>/dev/null | jq -r .config.node_name`" | |
sleep 1 | |
done |
This file contains 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
def vlan_unparser(vlan_list_string): | |
""" | |
Input: string in IOS-compressed VLAN syntax | |
Output: list with ranges expanded | |
""" | |
vlan_min = 1 | |
vlan_max = 4094 |
This file contains 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
{ | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"$defs": { | |
"cidr": { | |
"$comment": "CIDR, IPv4-only", | |
"type": "string", | |
"pattern": "^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}/[0-9]{1,2}" | |
} | |
}, | |
"type": "object", |