network = quantum.networks().create(netcreate).execute();
// Creating Subnet
try {
Subnet sub = new Subnet();
SubnetForCreate subnet = new SubnetForCreate();
subnet.setCidr("");
subnet.setName("");
subnet.setNetworkId(network.getId());
subnet.setIpVersion(4);
sub = quantum.subnets().create(subnet).execute();
RouterForCreate routerForCreate = new RouterForCreate();
routerForCreate.setName("routerName");
routerForCreate.setTenantId("tenantId");
Router router = quantum.routers().create(routerForCreate)
.execute();
RouterForAddInterface routerForAdd = new RouterForAddInterface();
routerForAdd.setSubnetId(sub.getId());
routerForAdd.setRouterId(router.getId());
quantum.routers().addInterface(routerForAdd).execute();
// System.out.println(sub);
} catch (Exception e) {