443444445446447448449450451452453454455456457458459
break; } } if(isNewDhcpHost){ DhcpHost host = sub.addDhcpHost(); host.ipAddr(nic.getIp4Address()); host.macAddr(nic.getMacAddress()); // This only sets the cloudstack internal name host.name(vm.getHostName()); host.create(); } } return true; }
6263646566676869707172
//mockMgmt MidonetApi api = mock(MidonetApi.class, RETURNS_DEEP_STUBS); //mockDhcpHost DhcpHost mockDhcpHost = mock(DhcpHost.class); //mockHostCollection ResourceCollection<DhcpHost> hosts = new ResourceCollection<DhcpHost>(new ArrayList<DhcpHost>()); //mockDhcpSubnet
435436437438439440441442443444445446447448449450451
break; } } if (isNewDhcpHost) { DhcpHost host = sub.addDhcpHost(); host.ipAddr(nic.getIp4Address()); host.macAddr(nic.getMacAddress()); // This only sets the cloudstack internal name host.name(vm.getHostName()); host.create(); } } return true; }
446447448449450451452453454455456457458459460461462