Network nw1=new Network();
VLAN vlan = new VLAN();
vlan.setId(2000);
nw1.setVlan(vlan);
IP ip = new IP();
ip.setAddress("192.168.1.151");
ip.setGateway("192.168.1.1");
ip.setNetmask("255.255.255.0");
nw1.setIp(ip);
nw1.setName("apiNetwork");
nw1.setDataCenter(api.getDataCenters().get("testDC"));
nw1.setCluster(api.getClusters().get("testCluster"));
org.ovirt.engine.sdk.decorators.Network nw2 = api.getNetworks().add(nw1);
--
Thanks & Regards
Tejesh