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/bash | |
# Get all versions of a file in a git repo | |
# Where to output new files | |
output_dir="/tmp/all_loc_csvs" | |
# Which file are we interested in? | |
file_of_interest="locations-of-interest/august-2021/locations-of-interest.csv" | |
mkdir -p "${output_dir}" |
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
vlans: | |
guest: | |
vid: 200 | |
description: "guest network" | |
faucet_mac: "0e:00:00:00:20:01" | |
faucet_vips: ['20.0.0.254/8'] | |
dps: | |
sw3: | |
dp_id: 0x3 | |
hardware: "Open vSwitch" |
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/bash | |
git_tmp_dir=$(mktemp -d /tmp/galmon-XXXXX) | |
git clone --recursive https://github.com/ahupowerdns/galmon.git "${git_tmp_dir}" | |
cd "${git_tmp_dir}" | |
running_ver=$(sudo docker exec -it galmon cat githash.h | grep -Eo 'GIT_HASH "[a-z0-9]+"' | cut -d ' ' -f 2 | tr -d '"') | |
upstream_ver=$(git describe --always --dirty=+ | tr -d '\n') |
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
vlans: | |
vlan100: | |
vid: 100 | |
name: vlan100 | |
faucet_vips: | |
- 192.168.2.254/24 | |
faucet_mac: '00:00:00:00:00:22' | |
dps: {} | |
acls: {} | |
meters: {} |
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
vlans: | |
office: | |
vid: 100 | |
description: "office network" | |
faucet_mac: "0e:00:00:00:10:01" | |
faucet_vips: ['10.0.100.254/24', '2001:100::1/64', 'fe80::c00:00ff:fe00:1001/64'] | |
guest: | |
vid: 200 | |
description: "guest network" | |
faucet_mac: "0e:00:00:00:20:01" |
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
acls: | |
assign-host-to-experiment-vlan: | |
# Send packets from host1 to experiment1 vlan | |
- rule: | |
eth_src: 2e:f6:43:15:c1:7d # host1 mac | |
actions: | |
output: | |
swap_vid: 101 # experiment1 vlan | |
allow: 1 # allow | |
- rule: |
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
--- | |
dps: | |
atx930: | |
description: allied telesis | |
dp_id: 0x0000eccd6def54fe | |
hardware: "Allied-Telesis" | |
interfaces: | |
openli_server: | |
number: 1 | |
native_vlan: lan |
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
version: 2 | |
acls: | |
eapoll_offload: | |
# Send EAP over LAN packets towards hostapd port | |
- rule: | |
dl_type: 0x888e # EAP over LAN | |
actions: | |
output: | |
vlan_vid: 10 |
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
#!/usr/bin/env python3 | |
import inspect | |
import pprint | |
from dp import DP | |
from vlan import VLAN | |
from port import Port | |
pp = pprint.PrettyPrinter(indent=4) |
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
# Check with travis lint .travis.yml. | |
# TODO: we want this to be xenial, but travis doesn't support it yet. | |
# dist: xenial | |
language: python | |
python: | |
- "2.7" | |
before_install: | |
- "sudo -H apt-get install graphviz" | |
- "pip install influxdb" | |
install: |
NewerOlder