HI Valerio,<br><br><div class="gmail_quote">On 7 August 2012 15:47, Valerio Schiavoni <span dir="ltr"><<a href="mailto:valerio.schiavoni@gmail.com" target="_blank">valerio.schiavoni@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div>how do I update a virtual network template to 'extend' the defined IP range?</div><div><br></div><div>This is the vn template I need to update:</div><div><br></div><div><div>onevnet show 13 </div><div>VIRTUAL NETWORK 13 INFORMATION </div>
<div>ID : 13 </div><div>NAME : vlan-2000 </div><div>USER : oneadmin </div><div>GROUP : oneadmin </div><div>CLUSTER : - </div>
<div>TYPE : RANGED </div><div>BRIDGE : onebr13 </div><div>VLAN : Yes </div><div>PHYSICAL DEVICE: eth0 </div><div>VLAN ID : 2000 </div>
<div>USED LEASES : 16 </div><div><br></div><div>PERMISSIONS </div><div>OWNER : uma </div><div>GROUP : --- </div>
<div>OTHER : --- </div><div><br></div><div>VIRTUAL NETWORK TEMPLATE </div><div><br></div><div><br></div><div>RANGE </div>
<div>IP_START : 10.0.0.1 </div><div>IP_END : 10.0.0.20 </div><div><br></div><div>LEASES ON HOLD </div><div>LEASE=[ IP="10.0.0.1", MAC="02:00:0a:00:00:01", USED="1", VID="-1" ]</div>
<div><br></div><div>USED LEASES </div><div>LEASE=[ IP="10.0.0.2", MAC="02:00:0a:00:00:02", USED="1", VID="149" ]</div>
<div>LEASE=[ IP="10.0.0.3", MAC="02:00:0a:00:00:03", USED="1", VID="150" ]</div><div>LEASE=[ IP="10.0.0.4", MAC="02:00:0a:00:00:04", USED="1", VID="151" ]</div>
<div>LEASE=[ IP="10.0.0.5", MAC="02:00:0a:00:00:05", USED="1", VID="152" ]</div><div>LEASE=[ IP="10.0.0.6", MAC="02:00:0a:00:00:06", USED="1", VID="153" ]</div>
<div>LEASE=[ IP="10.0.0.7", MAC="02:00:0a:00:00:07", USED="1", VID="154" ]</div><div>LEASE=[ IP="10.0.0.8", MAC="02:00:0a:00:00:08", USED="1", VID="155" ]</div>
<div>LEASE=[ IP="10.0.0.9", MAC="02:00:0a:00:00:09", USED="1", VID="156" ]</div><div>LEASE=[ IP="10.0.0.10", MAC="02:00:0a:00:00:0a", USED="1", VID="157" ]</div>
<div>LEASE=[ IP="10.0.0.11", MAC="02:00:0a:00:00:0b", USED="1", VID="158" ]</div><div>LEASE=[ IP="10.0.0.12", MAC="02:00:0a:00:00:0c", USED="1", VID="159" ]</div>
<div>LEASE=[ IP="10.0.0.13", MAC="02:00:0a:00:00:0d", USED="1", VID="160" ]</div><div>LEASE=[ IP="10.0.0.14", MAC="02:00:0a:00:00:0e", USED="1", VID="161" ]</div>
<div>LEASE=[ IP="10.0.0.15", MAC="02:00:0a:00:00:0f", USED="1", VID="162" ]</div><div>LEASE=[ IP="10.0.0.16", MAC="02:00:0a:00:00:10", USED="1", VID="163" ]</div>
</div><div><br></div><div><br></div><div><br></div><div>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.</div><div><br></div><div>If I try to "onevnet addleases <a href="tel:13%2010.0.0.21" value="+13100021" target="_blank">13 10.0.0.21</a>",an error message reports that:</div>
<div>"[VirtualNetworkAddLeases] Error modifying network leases. Adding new leases is only supported for FIXED networks."</div><div><br></div><div>Maybe it is possible to connect directly to the database and edit the field 'IP_END' somewhere in there?</div>
</blockquote><div><br></div><div>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 </div><div><br></div><div>Cheers</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br></div><div>Best regards,</div><div>Valerio</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Daniel Molina<br>Project Engineer<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula<br>