Skip to content

Commit b2b8f0e

Browse files
author
Jessica Wang
committed
CLOUDSTACK-2010: cloudstack UI - IPv6 - Infrastructure menu - zone detail - add IPv6 DNS1, IPv6 DNS 2 field.
1 parent b9d8955 commit b2b8f0e

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎ui/scripts/system.js‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4893,14 +4893,16 @@
48934893
var array1 = [];
48944894
array1.push("&name=" +todb(args.data.name));
48954895
array1.push("&dns1=" + todb(args.data.dns1));
4896-
array1.push("&dns2=" + todb(args.data.dns2)); //dns2 can be empty ("") when passed to API
4896+
array1.push("&dns2=" + todb(args.data.dns2)); //dns2 can be empty ("") when passed to API, so a user gets to update this field from an existing value to blank.
4897+
array1.push("&ip6dns1=" + todb(args.data.ip6dns1)); //p6dns1 can be empty ("") when passed to API, so a user gets to update this field from an existing value to blank.
4898+
array1.push("&ip6dns2=" + todb(args.data.ip6dns2)); //ip6dns2 can be empty ("") when passed to API, so a user gets to update this field from an existing value to blank.
48974899

48984900
if (selectedZoneObj.networktype == "Advanced" && args.data.guestcidraddress) {
48994901
array1.push("&guestcidraddress=" + todb(args.data.guestcidraddress));
49004902
}
49014903

49024904
array1.push("&internaldns1=" + todb(args.data.internaldns1));
4903-
array1.push("&internaldns2=" + todb(args.data.internaldns2)); //internaldns2 can be empty ("") when passed to API
4905+
array1.push("&internaldns2=" + todb(args.data.internaldns2)); //internaldns2 can be empty ("") when passed to API, so a user gets to update this field from an existing value to blank.
49044906
array1.push("&domain=" + todb(args.data.domain));
49054907
array1.push("&localstorageenabled=" + (args.data.localstorageenabled == 'on'));
49064908
$.ajax({
@@ -4938,6 +4940,8 @@
49384940
allocationstate: { label: 'label.allocation.state' },
49394941
dns1: { label: 'label.dns.1', isEditable: true, validation: { required: true } },
49404942
dns2: { label: 'label.dns.2', isEditable: true },
4943+
ip6dns1: { label: 'IPv6 DNS1', isEditable: true },
4944+
ip6dns2: { label: 'IPv6 DNS2', isEditable: true },
49414945
internaldns1: { label: 'label.internal.dns.1', isEditable: true, validation: { required: true } },
49424946
internaldns2: { label: 'label.internal.dns.2', isEditable: true },
49434947
domainname: { label: 'label.domain' },
@@ -4950,8 +4954,8 @@
49504954
localstorageenabled: {
49514955
label: 'label.local.storage.enabled',
49524956
isBoolean: true,
4953-
isEditable: true,
4954-
converter:cloudStack.converters.toBooleanText
4957+
isEditable: true,
4958+
converter:cloudStack.converters.toBooleanText
49554959
}
49564960
}
49574961
],

0 commit comments

Comments
 (0)