[Debian] Re: bug in vzctl help scripts
Ola Lundqvist
opal at debian.org
Fri Apr 20 01:03:51 EDT 2007
Package: vzctl
Severity: normal
Version: 3.0.11-13
Hi David
On Thu, Apr 19, 2007 at 04:28:52PM +0100, David Morgado wrote:
> Hi I don't know if this is the right place to report this, sorry if it
> isn't.
Well it is not the perfect place but I'll submit a bug in this mail
instead. :)
> I'm using debian etch on amd64 arch and using openvz vzctl and vlans.
> The help function vzgetnetdev() in
> /usr/lib/vzctl/scripts/vps-functions doesn't handle vlans very well.
>
> For example if I have vlan2 on interface bond0 this function returns
> vlan2 at bond0 witch does not exist in /proc/sys/net/ipv4/conf/
Ok, I understand. I have not seen this vlan at if syntax before, is it
something standard nowdays?
> So I made a change on that function so that there is one more pipe
> with sed to cut out that @xxxx from the interface name.
Ok.
> # This function fills $NETDEVICES with all network interfaces
> # You should always call it before calling vzarp
> function vzgetnetdev()
> {
> # Get a list of interfaces, excluding ones with LOOPBACK NOARP or SLAVE
> flags
> NETDEVICES=`${IP_CMD} link list | egrep -v -E "LOOPBACK|NOARP|SLAVE"
> | \
> awk "/^[0-9].*:/&&/UP/ {print \\$2}" | sed -e "s/:\$//" | \
> sed -e "s/@.*\$//"`
> }
Thanks a lot fot the patch.
>
> Hope this helps and sorry if this is not the wright place to post this
> Thanks
I have created the bug for you now, so it do not matter much. The only
difference is that you will not be notified when I close this bug as I
tend to rely on that the bugtracking system do it for me.
Regards,
// Ola
> David Morgado
>
--
--------------------- Ola Lundqvist ---------------------------
/ opal at debian.org Annebergsslingan 37 \
| ola at opalsys.net 654 65 KARLSTAD |
| +46 (0)54-10 14 30 +46 (0)70-332 1551 |
| http://opalsys.net/ UIN/icq: 4912500 |
\ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
---------------------------------------------------------------
More information about the Debian
mailing list