| Shingoshi (~Shingoshi@c-98-246-122-42.hsd1.or.comcast.net) left irc: Remote host closed the connection |
| ErKa (keryell@keryell.pck.nerim.net) joined #fai. |
| ErKa (keryell@keryell.pck.nerim.net) left irc: Ping timeout: 480 seconds |
| siggg (~jean@tra78-5-88-172-128-32.fbx.proxad.net) joined #fai. |
| siggg (~jean@tra78-5-88-172-128-32.fbx.proxad.net) left irc: Remote host closed the connection |
| 10:51 FBI | fai: 3 mt committed revision 5292 to 7 fai: added sleep 10 and info message to faireboot (closes: #520554) |
| ErKa (keryell@keryell.pck.nerim.net) joined #fai. |
| ErKa (keryell@keryell.pck.nerim.net) left irc: Remote host closed the connection |
| ErKa (~keryell@keryell.pck.nerim.net) joined #fai. |
| ErKa (~keryell@keryell.pck.nerim.net) left irc: Remote host closed the connection |
| siggg (~jean@tra78-5-88-172-128-32.fbx.proxad.net) joined #fai. |
| ErKa (~keryell@keryell.pck.nerim.net) joined #fai. |
| ErKa (~keryell@keryell.pck.nerim.net) left irc: Read error: Connection reset by peer |
| luk_ (~luk@luk.netop.oftc.net) joined #fai. |
| ErKa (~keryell@keryell.pck.nerim.net) joined #fai. |
| 15:43 luk_ | what's the URL to the repo of FAI? |
| 15:51 luk_ | ah apparently on svn.debian.org |
| ErKa (~keryell@keryell.pck.nerim.net) left irc: Ping timeout: 480 seconds |
| ErKa (~keryell@keryell.pck.nerim.net) joined #fai. |
| ErKa (~keryell@keryell.pck.nerim.net) left irc: Read error: Connection reset by peer |
| 16:52 h01ger | luk_, debian/control knows as well :) |
| 16:53 luk_ | yes, though to look into the debian/control in the repo one has to know the repo :-) |
| 16:53 luk_ | ip does not seem to use netmasks, but instead uses prefixes |
| 16:54 luk_ | should shell functions be added to convert them? |
| 16:54 luk_ | for instance 157.193.44.1/255.255.255.0 in ifconfig is shown as 157.193.44.1/24 in ip |
| 16:55 mgoetze | where do you need to convert them? |
| 17:12 luk_ | fai-setup |
| 17:13 luk_ | for use in the exports file |
| 17:13 rjd | luk_: do you need to convert once, or a script that does it on argument or something else? |
| 17:17 luk_ | rjd: in fai-setup to be able to 'add_export_line' as it currently uses address/netmask |
| 17:18 rjd | Im new to FAI, so for me that didnt answer my question : |
| 17:18 luk_ | I'm trying to convert the ifconfig calls to ip calls if anyone is wondering about the context |
| 17:18 rjd | if you have ipcalc, you could do something like this: NET="84.55.85.0/25"; NETMASK=`ipcalc 84.55.85.0/25|grep Netmask|awk '{print $2'}`; IP=`echo $NETrint $1}'`; echo "$IP/$NETMASK" |
| 17:19 rjd | NET=$1 for argument 1 instead |
| 17:19 rjd | sorry, replace the second 84.55.85.0/25 with $NET :-) |
| 17:21 rjd | or: ip=`echo $1 | cut -d'/' -f1`;cidr=`ipcalc $1 | grep Netmask | awk '{print $2}'`;echo "$ip/$cidr" |
| 17:26 h01ger | luk_, you've heard of this packages.qa.debian.org/fai thing? :-P :) |
| 17:33 luk_ | does fai-setup need the hosts to be specified as IPs? |
| 17:34 luk_ | and why does it need to add a netmask if it's only meant for one host? |
| 17:36 mgoetze | hm, doesn't exports accept both formats? |
| 17:37 mgoetze | (checks manpage) yes, it does ... i don't quite see your problem? |
| 17:37 luk_ | according to the manpage at least it only needs the netmask when you want it to apply for a subnet of machines |
| 17:38 mgoetze | and if you do, it doesn't particularily mind whether you write /255.255.255.0 or /24 |
| 17:38 mgoetze | so... what are you trying to achieve? |
| Action: h01ger cheers luks patch |
| 19:20 FBI | fai: 3 mt committed revision 5293 to 7 fai: Added Luk's patch to do the ifconfig -> ip transition |
| sepski (~sep@raserv.aasen.cx) left irc: Remote host closed the connection |
| siggg (~jean@tra78-5-88-172-128-32.fbx.proxad.net) left irc: Ping timeout: 480 seconds |
| --- Sun Mar 22 2009 |