[pve-devel] r6320 - in pve-manager/pve2: . www/manager/qemu

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Jul 19 07:17:52 CEST 2011


Author: dietmar
Date: 2011-07-19 07:17:52 +0200 (Tue, 19 Jul 2011)
New Revision: 6320

Modified:
   pve-manager/pve2/ChangeLog
   pve-manager/pve2/www/manager/qemu/NetworkEdit.js
Log:
	* www/manager/qemu/NetworkEdit.js: add rate limit field



Modified: pve-manager/pve2/ChangeLog
===================================================================
--- pve-manager/pve2/ChangeLog	2011-07-19 04:52:40 UTC (rev 6319)
+++ pve-manager/pve2/ChangeLog	2011-07-19 05:17:52 UTC (rev 6320)
@@ -1,5 +1,7 @@
 2011-07-19  Proxmox Support Team  <support at proxmox.com>
 
+	* www/manager/qemu/NetworkEdit.js: add rate limit field
+
 	* www/manager/Utils.js (API2Request): use createWrapper function to
 	avoid js scope problem.
 

Modified: pve-manager/pve2/www/manager/qemu/NetworkEdit.js
===================================================================
--- pve-manager/pve2/www/manager/qemu/NetworkEdit.js	2011-07-19 04:52:40 UTC (rev 6319)
+++ pve-manager/pve2/www/manager/qemu/NetworkEdit.js	2011-07-19 05:17:52 UTC (rev 6320)
@@ -17,6 +17,12 @@
 	}
 	me.network.mac = values.mac;
 
+	if (values.rate) {
+	    me.network.rate = values.rate;
+	} else {
+	    delete me.network.rate;
+	}
+
 	var params = {};
 
 	params[me.confid] = PVE.Parser.printQemuNetwork(me.network);
@@ -114,6 +120,16 @@
 		vtype: 'MacAddress',
 		allowBlank: true,
 		emptyText: 'auto'
+	    },
+	    {
+		xtype: 'numberfield',
+		name: 'rate',
+		fieldLabel: 'Rate limit (MB/s)',
+		minValue: 0,
+		maxValue: 10*1024,
+		value: '',
+		emptyText: 'unlimited',
+		allowBlank: true
 	    }
 	];
 




More information about the pve-devel mailing list