<div dir="ltr"><div><div><div>Hi ,<br><br></div>I'm trying to create Logical Network and assign it to cluster & want to bond this to one of the Network Interface on Host. so that i can isolate my VM from other networks.<br>
<br></div>The issue is even if i set Cluster while creating Logical Network, it is not setting the cluster. In Web Admin it is in unset state. <br><br></div>Also, let me know how do i bind this Logical network on Host Interface.<br>
<div><br><u><b>Java code:</b></u><br><div><div><br>Network nw1=new Network();<br> VLAN vlan = new VLAN();<br> vlan.setId(2000);<br> nw1.setVlan(vlan);<br> IP ip = new IP();<br> ip.setAddress("192.168.1.151");<br>
ip.setGateway("192.168.1.1");<br> ip.setNetmask("255.255.255.0");<br> nw1.setIp(ip);<br> nw1.setName("apiNetwork");<br> <br> nw1.setDataCenter(api.getDataCenters().get("testDC"));<br>
nw1.setCluster(api.getClusters().get("testCluster"));<br> <br> org.ovirt.engine.sdk.decorators.Network nw2 = api.getNetworks().add(nw1);<br clear="all"><div><br>-- <br><div>Thanks & Regards</div>
<div>Tejesh</div>
</div></div></div></div></div>