[pve-devel] [PATCH pve-manager] DNS ui/api: ipv6 support

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Oct 5 09:32:47 CEST 2015


---
 PVE/API2/Nodes.pm           | 6 +++---
 www/manager/node/DNSEdit.js | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index f4bda13..4f708e7 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -883,17 +883,17 @@ __PACKAGE__->register_method({
 	    },
 	    dns1 => {
 		description => 'First name server IP address.',
-		type => 'string', format => 'ipv4',
+		type => 'string', format => 'ip',
 		optional => 1,
 	    },		
 	    dns2 => {
 		description => 'Second name server IP address.',
-		type => 'string', format => 'ipv4',
+		type => 'string', format => 'ip',
 		optional => 1,
 	    },		
 	    dns3 => {
 		description => 'Third name server IP address.',
-		type => 'string', format => 'ipv4',
+		type => 'string', format => 'ip',
 		optional => 1,
 	    },		
 	},
diff --git a/www/manager/node/DNSEdit.js b/www/manager/node/DNSEdit.js
index 2fd5027..e978480 100644
--- a/www/manager/node/DNSEdit.js
+++ b/www/manager/node/DNSEdit.js
@@ -20,21 +20,21 @@ Ext.define('PVE.node.DNSEdit', {
 	    {
 		xtype: 'pvetextfield',
                 fieldLabel: gettext('DNS server') + " 1",
-		vtype: 'IPAddress',
+		vtype: 'IP64Address',
 		skipEmptyText: true,
                 name: 'dns1'
 	    },
 	    {
 		xtype: 'pvetextfield',
 		fieldLabel: gettext('DNS server') + " 2",
-		vtype: 'IPAddress',
+		vtype: 'IP64Address',
 		skipEmptyText: true,
                 name: 'dns2'
 	    },
 	    {
 		xtype: 'pvetextfield',
                 fieldLabel: gettext('DNS server') + " 3",
-		vtype: 'IPAddress',
+		vtype: 'IP64Address',
 		skipEmptyText: true,
                 name: 'dns3'
 	    }
-- 
2.1.4




More information about the pve-devel mailing list