<div dir="ltr">Hi,<div><br></div><div class="gmail_extra"><div class="gmail_quote">On Thu, May 22, 2014 at 4:46 PM, Daniel Dehennin <span dir="ltr"><<a href="mailto:daniel.dehennin@baby-gnu.org" target="_blank">daniel.dehennin@baby-gnu.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello,<br>
<br>
Trying to factorize the VM template on ONE 4.6.1 for our internal use,<br>
I'm trying to create a user parametric[1] template for network.<br>
<br>
We have one network topology model and want to ease running their VMs in<br>
their own pre-defined networks[2].<br>
<br>
I'm trying to define the template with the following NIC definition:<br>
<br>
NIC=[NETWORK_UNAME="${UNAME}",NETWORK="${UNAME}-net"]<br>
<br>
When a user foo instanciate the VM template, I would like ONE to<br>
“resolve” the NIC definition to:<br>
<br>
NIC=[NETWORK_UNAME="foo",NETWORK="foo-net"]<br>
<br>
Is there a way to achive something like this?<br>
<br>
Regards.<br>
<br>
Footnotes:<br>
[1] like for context <a href="http://docs.opennebula.org/4.6/user/references/template.html#context-section" target="_blank">http://docs.opennebula.org/4.6/user/references/template.html#context-section</a><br>
<br>
[2] not like asked in <a href="http://dev.opennebula.org/issues/2125" target="_blank">http://dev.opennebula.org/issues/2125</a><br>
<span class=""><font color="#888888"><br>
--<br>
Daniel Dehennin<br>
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF<br>
Fingerprint: 3E69 014E 5C23 50E8 9ED6 2AAD CC1E 9E5B 7A6F E2DF<br><br></font></span></blockquote><div><br></div><div>That syntax is only supported inside the CONTEXT section. You can however use the network name only:</div>
<div><br></div><div>NIC = [ NETWORK = "foo-net" ]</div><div><br></div><div>If you don't provide the network_uname or network_uid, opennebula will look for the network owned by the user instantiating the template. Bear in mind that all users must own a network with the same name, otherwise the deployment will fail.</div>
<div><br></div><div>Regards.</div><div><div dir="ltr"><br class="">--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br><div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.opennebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" target="_blank" style="color:rgb(42,93,176)"></a></span></div>
</div></div></div><br><div> </div></div><br></div></div>