class AutonomiccsSystemVmsGuru implements VirtualMachineGuru, InitializingBean {

    protected String configureNicDhcpAndDns(VirtualMachineProfile profile, StringBuilder buf, boolean externalDhcp) {
        if (externalDhcp) {
            buf.append(" bootproto=dhcp");
        }
        DataCenterVO dc = datacenterDao.findById(profile.getVirtualMachine().getDataCenterId());
        buf.append(" internaldns1=").append(dc.getInternalDns1());
        if (dc.getInternalDns2() != null) {
            buf.append(" internaldns2=").append(dc.getInternalDns2());
        }
        buf.append(" dns1=").append(dc.getDns1());
        if (dc.getDns2() != null) {
            buf.append(" dns2=").append(dc.getDns2());
        }
        return buf.toString();
    }

}