mirror of
				https://git.proxmox.com/git/pve-manager
				synced 2025-11-04 07:12:22 +00:00 
			
		
		
		
	also the keys to display from the lxc config where updated as some from OpenVZ times where used. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
		
			
				
	
	
		
			34 lines
		
	
	
		
			669 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			669 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
Ext.define('PVE.QemuSummary', {
 | 
						|
    extend: 'PVE.VMSummaryBase',
 | 
						|
    alias: 'widget.pveQemuSummary',
 | 
						|
 | 
						|
    statics: {
 | 
						|
	pathMatch: function(loc) {
 | 
						|
	    return loc.match(/^nodes\/([^\s\/]+)\/qemu\/(\d+)$/);
 | 
						|
	}
 | 
						|
    },
 | 
						|
 | 
						|
    vmtype: 'qemu',
 | 
						|
 | 
						|
    config_keys: [
 | 
						|
	'name', 'memory', 'sockets', 'cores', 'ostype', 'bootdisk', /^net\d+/,
 | 
						|
	/^ide\d+/, /^virtio\d+/, /^sata\d+/, /^scsi\d+/, /^unused\d+/
 | 
						|
    ],
 | 
						|
 | 
						|
    initialize: function() {
 | 
						|
	var me = this;
 | 
						|
 | 
						|
	var match = me.self.pathMatch(me.getAppUrl());
 | 
						|
	if (!match) {
 | 
						|
	    throw "pathMatch failed";
 | 
						|
	}
 | 
						|
 | 
						|
	me.nodename = match[1];
 | 
						|
	me.vmid = match[2];
 | 
						|
 | 
						|
	me.down('titlebar').setTitle('VM: ' + me.vmid);
 | 
						|
 | 
						|
	this.callParent();
 | 
						|
    }
 | 
						|
});
 |