*** stanchan has joined #akanda | 00:50 | |
*** puranamr has joined #akanda | 04:37 | |
*** puranamr has quit IRC | 04:44 | |
*** puranamr has joined #akanda | 06:15 | |
*** puranamr has quit IRC | 06:28 | |
*** ryanpetrello has quit IRC | 06:32 | |
*** ryanpetrello has joined #akanda | 06:40 | |
*** ryanpetrello has quit IRC | 10:27 | |
*** sarob has quit IRC | 10:27 | |
*** adam_g has quit IRC | 10:27 | |
*** fzylogic has quit IRC | 10:27 | |
*** ryanpetrello has joined #akanda | 10:30 | |
*** sarob has joined #akanda | 10:30 | |
*** adam_g has joined #akanda | 10:30 | |
*** fzylogic has joined #akanda | 10:30 | |
*** ryanpetrello has quit IRC | 10:30 | |
*** sarob has quit IRC | 10:30 | |
*** adam_g has quit IRC | 10:30 | |
*** fzylogic has quit IRC | 10:30 | |
*** ryanpetrello has joined #akanda | 10:33 | |
*** sarob has joined #akanda | 10:33 | |
*** adam_g has joined #akanda | 10:33 | |
*** fzylogic has joined #akanda | 10:33 | |
*** puranamr has joined #akanda | 13:33 | |
*** puranamr has quit IRC | 13:39 | |
*** stanchan has quit IRC | 14:54 | |
*** puranamr has joined #akanda | 15:32 | |
*** puranamr has quit IRC | 15:57 | |
*** cleverdevil has joined #akanda | 16:05 | |
*** stanchan has joined #akanda | 17:41 | |
*** cleverdevil has quit IRC | 19:00 | |
adam_g | davidlenwell, do you have a devstack up currently? | 19:51 |
---|---|---|
davidlenwell | I just unstacked.. whats up? | 19:51 |
adam_g | davidlenwell, is /opt/stack still there? can you just paste me whats in there. i need a list of what repos we require | 19:52 |
adam_g | dont have one up atm | 19:52 |
davidlenwell | akanda-horizon akanda-rug data glance keystone neutron noVNC status | 19:52 |
davidlenwell | akanda-neutron cinder devstack horizon log nova requirements tempest | 19:52 |
adam_g | coolthanks | 19:54 |
*** puranamr has joined #akanda | 20:11 | |
*** cleverdevil has joined #akanda | 20:16 | |
*** puranamr has quit IRC | 20:17 | |
*** puranamr has joined #akanda | 20:20 | |
*** puranamr has quit IRC | 20:21 | |
davidlenwell | adam_g: So I kinda suck at bash and doing stuff with strings.. so I just made this in python which does the trick nicely.. | 20:23 |
davidlenwell | https://gist.github.com/dlenwell/f066374bae1e36bd106a | 20:23 |
*** drwahl1 has joined #akanda | 20:28 | |
adam_g | davidlenwell, cool | 20:29 |
adam_g | $ for i in `ip addr | grep "^[0-9]" | awk '{ print $2 }' | cut -d: -f1 | egrep '^qv|^qb|^ta'`; do sudo ip link set $i down ; done | 20:30 |
adam_g | should do the same. probably a better way to do that in bash, too, but w/e works | 20:30 |
drwahl | MY EYES! | 20:31 |
* drwahl hates string parsing in bash | 20:31 | |
*** smcginnis is now known as smcginnis_afk | 20:34 | |
adam_g | im sure that could be cut down to just one pipe /w some sed-fu | 20:34 |
davidlenwell | yeah | 20:35 |
davidlenwell | sed-fu.. yay | 20:35 |
adam_g | 1) match only lines with a that start with a number (1. eth0: xxx) 2) print the second thing (eth0:) 3) strip the : (eth0) 4) match for devices starting with qv or qb or ta | 20:36 |
drwahl | ip addr | grep "^[0-9]:.[qv,qb,ta]" | cut -d":" -f2 | 20:38 |
drwahl | that gets you pretty dang close | 20:38 |
drwahl | it'd run into issues if you have more than 10 interfaces | 20:39 |
adam_g | woot | 20:39 |
adam_g | yay bash golf | 20:39 |
davidlenwell | fun! | 20:40 |
drwahl | i got suckered into playing :( | 20:40 |
davidlenwell | devstack with akanda kicks off around 58 interfaces | 20:41 |
davidlenwell | so being less than 10 won't work | 20:41 |
drwahl | easy fix: | 20:42 |
drwahl | ip addr | grep "^[0-9].:.[qv,qb,ta]" | cut -d":" -f2 | 20:42 |
drwahl | just gotta sneak another "." in there | 20:42 |
davidlenwell | that outputs some of the interfaces twice | 20:44 |
drwahl | ya, working on a fix for that | 20:44 |
davidlenwell | needs to start with [qv,qb,ta] not a contains | 20:44 |
davidlenwell | a ^ in front of that list should do it | 20:45 |
davidlenwell | no | 20:45 |
davidlenwell | see I hate bash golf | 20:45 |
drwahl | ip addr | grep "^.*[0-9]: [qv,qb,ta]" | 20:47 |
drwahl | that should catch any number of interfaces and the interface name would need to start with qv, qb, or ta | 20:48 |
*** cleverdevil- has joined #akanda | 20:54 | |
*** cleverdevil has quit IRC | 20:57 | |
*** puranamr has joined #akanda | 21:02 | |
*** puranamr has quit IRC | 21:15 | |
*** puranamr has joined #akanda | 21:25 | |
*** puranamr has quit IRC | 21:29 | |
*** cleverdevil- is now known as cleverdevil | 21:44 | |
*** cleverdevil has quit IRC | 22:18 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!