Skip to content

Instantly share code, notes, and snippets.

View sato-cloudian's full-sized avatar

Takenori Sato sato-cloudian

View GitHub Profile
@j3tm0t0
j3tm0t0 / add_policy_route.sh
Created December 17, 2012 19:27
adding policy based route for each ENI
#!/bin/sh
perl -v > /dev/null || exit 1
m()
{
curl -s http://169.254.169.254/latest/meta-data/network/interfaces/macs/$1
}
for mac in `m`
do
dev=`m $mac/device-number`