[one-users] how to edit a virtual network template (extend IP ranges) ?

Daniel Molina dmolina at opennebula.org
Thu Aug 16 01:07:28 PDT 2012


HI Valerio,

On 7 August 2012 15:47, Valerio Schiavoni <valerio.schiavoni at gmail.com>wrote:

> Hi,
> how do I update a virtual network template to 'extend' the defined IP
> range?
>
> This is the vn template I need to update:
>
> onevnet show 13
> VIRTUAL NETWORK 13 INFORMATION
>
> ID             : 13
> NAME           : vlan-2000
> USER           : oneadmin
> GROUP          : oneadmin
> CLUSTER        : -
> TYPE           : RANGED
> BRIDGE         : onebr13
> VLAN           : Yes
> PHYSICAL DEVICE: eth0
> VLAN ID        : 2000
> USED LEASES    : 16
>
> PERMISSIONS
>
> OWNER          : uma
> GROUP          : ---
> OTHER          : ---
>
> VIRTUAL NETWORK TEMPLATE
>
>
>
> RANGE
>
> IP_START       : 10.0.0.1
> IP_END         : 10.0.0.20
>
> LEASES ON HOLD
>
> LEASE=[ IP="10.0.0.1", MAC="02:00:0a:00:00:01", USED="1", VID="-1" ]
>
> USED LEASES
>
> LEASE=[ IP="10.0.0.2", MAC="02:00:0a:00:00:02", USED="1", VID="149" ]
> LEASE=[ IP="10.0.0.3", MAC="02:00:0a:00:00:03", USED="1", VID="150" ]
> LEASE=[ IP="10.0.0.4", MAC="02:00:0a:00:00:04", USED="1", VID="151" ]
> LEASE=[ IP="10.0.0.5", MAC="02:00:0a:00:00:05", USED="1", VID="152" ]
> LEASE=[ IP="10.0.0.6", MAC="02:00:0a:00:00:06", USED="1", VID="153" ]
> LEASE=[ IP="10.0.0.7", MAC="02:00:0a:00:00:07", USED="1", VID="154" ]
> LEASE=[ IP="10.0.0.8", MAC="02:00:0a:00:00:08", USED="1", VID="155" ]
> LEASE=[ IP="10.0.0.9", MAC="02:00:0a:00:00:09", USED="1", VID="156" ]
> LEASE=[ IP="10.0.0.10", MAC="02:00:0a:00:00:0a", USED="1", VID="157" ]
> LEASE=[ IP="10.0.0.11", MAC="02:00:0a:00:00:0b", USED="1", VID="158" ]
> LEASE=[ IP="10.0.0.12", MAC="02:00:0a:00:00:0c", USED="1", VID="159" ]
> LEASE=[ IP="10.0.0.13", MAC="02:00:0a:00:00:0d", USED="1", VID="160" ]
> LEASE=[ IP="10.0.0.14", MAC="02:00:0a:00:00:0e", USED="1", VID="161" ]
> LEASE=[ IP="10.0.0.15", MAC="02:00:0a:00:00:0f", USED="1", VID="162" ]
> LEASE=[ IP="10.0.0.16", MAC="02:00:0a:00:00:10", USED="1", VID="163" ]
>
>
>
> When I try to "onevnet update 13" (where 13 is the ID of the vn template
> to modify), i'm shown an empty editor page.
>
> If I try to "onevnet addleases 13 10.0.0.21",an error message reports
> that:
> "[VirtualNetworkAddLeases] Error modifying network leases. Adding new
> leases is only supported for FIXED networks."
>
> Maybe it is possible to connect directly to the database and edit the
> field 'IP_END' somewhere in there?
>

I think there should not be any problem if you stop oned and modify the
field, since it's not possible to update (add/remove leases) ranged
networks

Cheers

>
> Best regards,
> Valerio
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120816/15517439/attachment-0002.htm>


More information about the Users mailing list