<div dir="ltr">Try this :)<div><br></div><div><span style="font-size:12.8px">declare ("InternetGatewayDevice.WANDev</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">ice.1.WANConnectionDevice.1.WA</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">NIPConnection.*", null, {path: 2}); //Tell genie we want two interfaces</span><br style="font-size:12.8px"><span style="font-size:12.8px">declare ("InternetGatewayDevice.WANDev</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">ice.1.WANConnectionDevice.1.WA</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">NIPConnection.*.[ConnectionType:IP_Routed,Name:Routed,Enable:true]</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">", {path: 1}, {path: 1});</span><br style="font-size:12.8px"><span style="font-size:12.8px">declare ("InternetGatewayDevice.WANDev</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">ice.1.WANConnectionDevice.1.WA</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">NIPConnection.*.[ConnectionType:</span><span style="font-size:12.8px">IP_Bridged</span><span style="font-size:12.8px">,Name:Bridged</span><span style="font-size:12.8px">,Enable:true</span><span style="font-size:12.8px">]</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">", {path: 1}, {path: 1});</span></div><div><br style="font-size:12.8px"></div><div><span style="font-size:12.8px">That will create two interfaces. If there are more interfaces than that, they will be deleted. If there are less than 2, then interfaces will be added until the count is 2. Then it will set the parameters to whats in the brackets.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">-dan</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 5, 2017 at 4:33 AM, Margerita <span dir="ltr"><<a href="mailto:polanski.michal.mail@gmail.com" target="_blank">polanski.michal.mail@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,<br>
<br>
I would like to create two interfaces using Provision:<br>
<br>
declare ("InternetGatewayDevice.WANDev<wbr>ice.1.WANConnectionDevice.1.WA<wbr>NIPConnection.*", null, {path: 1});<br>
declare ("InternetGatewayDevice.WANDev<wbr>ice.1.WANConnectionDevice.1.WA<wbr>NIPConnection.*.ConnectionType<wbr>", null, {value: "IP_Routed"});<br>
declare ("InternetGatewayDevice.WANDev<wbr>ice.1.WANConnectionDevice.1.WA<wbr>NIPConnection.*", null, {path: 1});<br>
declare ("InternetGatewayDevice.WANDev<wbr>ice.1.WANConnectionDevice.1.WA<wbr>NIPConnection.*.ConnectionType<wbr>", null, {value: "IP_Bridged"});<br>
<br>
and want to achieve the following effect:<br>
<br>
InternetGatewayDevice.WANDevic<wbr>e.1.WANConnectionDevice.1.WANI<wbr>PConnection.1<br>
InternetGatewayDevice.WANDevic<wbr>e.1.WANConnectionDevice.1.WANI<wbr>PConnection.1.ConnectionType IP_Routed<br>
InternetGatewayDevice.WANDevic<wbr>e.1.WANConnectionDevice.1.WANI<wbr>PConnection.2<br>
InternetGatewayDevice.WANDevic<wbr>e.1.WANConnectionDevice.1.WANI<wbr>PConnection.2.ConnectionType IP_Bridged<br>
<br>
but whatever I put in path values, I always finish with only one interface or with two interfaces but both 'IP_Bridged'.<br>
What is the correct method for achieving my goal?<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Michal<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
</font></span></blockquote></div><br></div>