Subject: Re: [vserver] naddress --remove error
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Sat, 18 Jul 2009 21:08:36 +0200

On Sat, Jul 18, 2009 at 01:49:57PM -0400, John A. Sullivan III wrote:
> Hello, all.  While doing some testing I added an address to a guest:

> [root@vserver01 ~]# naddress --add --nid 40003 --ip 10.68.6.235
> Adding 10.68.6.235
> 
> I then tried to remove it and received the following errors:
> [root@vserver01 ~]# naddress --remove --nid 40003 --ip 10.68.6.235
> Removing 10.68.6.235
> naddress: vc_net_remove(): Invalid argument
> [root@vserver01 ~]# naddress --remove --nid 40003 --ip 10.68.6.235/29
> Removing 10.68.6.235
> naddress: vc_net_remove(): Invalid argument
> [root@vserver01 ~]# naddress --remove --nid 40003 --ip 10.68.6.235/29 --bcast 10.68.6.239
> Removing 10.68.6.235
> naddress: vc_net_remove(): Invalid argument

> What am I doing wrong? Thanks - John

nothing, single IP (or subset) removal is not implemented
yet, but you can remove all IPs, and add back the ones
you want to keep ...

note: patches are welcome :)

best,
Herbert

> -- 
> John A. Sullivan III
> Open Source Development Corporation
> +1 207-985-7880
> jsullivan@opensourcedevel.com
> 
> http://www.spiritualoutreach.com
> Making Christianity intelligible to secular society