Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class CreateZoneCmd extends BaseCmd {
@Parameter(name = ApiConstants.GUEST_CIDR_ADDRESS, type = CommandType.STRING, description = "the guest CIDR address for the Zone")
private String guestCidrAddress;

@Parameter(name = ApiConstants.INTERNAL_DNS1, type = CommandType.STRING, required = true, description = "the first internal DNS for the Zone")
@Parameter(name = ApiConstants.INTERNAL_DNS1, type = CommandType.STRING, description = "the first internal DNS for the Zone")
private String internalDns1;

@Parameter(name = ApiConstants.INTERNAL_DNS2, type = CommandType.STRING, description = "the second internal DNS for the Zone")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,9 @@ public boolean finalizeVirtualMachineProfile(VirtualMachineProfile profile, Depl
buf.append(" bootproto=dhcp");
}
DataCenterVO dc = _dcDao.findById(profile.getVirtualMachine().getDataCenterId());
buf.append(" internaldns1=").append(dc.getInternalDns1());
if (dc.getInternalDns1() != null) {
buf.append(" internaldns1=").append(dc.getInternalDns1());
}
if (dc.getInternalDns2() != null) {
buf.append(" internaldns2=").append(dc.getInternalDns2());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,9 @@ public boolean finalizeVirtualMachineProfile(VirtualMachineProfile profile, Depl
}

DataCenterVO dc = _dcDao.findById(profile.getVirtualMachine().getDataCenterId());
buf.append(" internaldns1=").append(dc.getInternalDns1());
if (dc.getInternalDns1() != null) {
buf.append(" internaldns1=").append(dc.getInternalDns1());
}
if (dc.getInternalDns2() != null) {
buf.append(" internaldns2=").append(dc.getInternalDns2());
}
Expand Down
3 changes: 0 additions & 3 deletions ui/scripts/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -8529,9 +8529,6 @@
internaldns1: {
label: 'label.internal.dns.1',
isEditable: true,
validation: {
required: true
}
},
internaldns2: {
label: 'label.internal.dns.2',
Expand Down
1 change: 0 additions & 1 deletion ui/scripts/zoneWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@
internaldns1: {
label: 'label.internal.dns.1',
validation: {
required: true,
ipv4: true
},
desc: 'message.tooltip.internal.dns.1'
Expand Down