mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-03 17:41:38 +00:00
implement the disconnect nic button on the network edit pannel.
Signed-off-by: Wolfgang Link <wolfgang@linksystems.org>
This commit is contained in:
parent
eab837c4c4
commit
caea0c7925
2
debian/changelog.Debian
vendored
2
debian/changelog.Debian
vendored
@ -1,4 +1,6 @@
|
||||
pve-manager (3.3-11) unstable; urgency=low
|
||||
|
||||
* New 'disconnect' button on the network edit pannel.
|
||||
|
||||
* Fix backup failure at shutdown (stop backup on host shutdown)
|
||||
|
||||
|
@ -33,6 +33,8 @@ Ext.define('PVE.Parser', { statics: {
|
||||
res.tag = match_res[1];
|
||||
} else if ((match_res = p.match(/^firewall=(\d+)$/)) !== null) {
|
||||
res.firewall = match_res[1];
|
||||
} else if ((match_res = p.match(/^link_down=(\d+)$/)) !== null) {
|
||||
res.disconnect = match_res[1];
|
||||
} else {
|
||||
errors = true;
|
||||
return false; // break
|
||||
@ -64,6 +66,9 @@ Ext.define('PVE.Parser', { statics: {
|
||||
if (net.rate) {
|
||||
netstr += ",rate=" + net.rate;
|
||||
}
|
||||
if (net.disconnect) {
|
||||
netstr += ",link_down=" + net.disconnect;
|
||||
}
|
||||
return netstr;
|
||||
},
|
||||
|
||||
|
@ -18,6 +18,7 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
|
||||
me.network.bridge = undefined;
|
||||
}
|
||||
me.network.macaddr = values.macaddr;
|
||||
me.network.disconnect = values.disconnect;
|
||||
|
||||
if (values.rate) {
|
||||
me.network.rate = values.rate;
|
||||
@ -147,6 +148,11 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
|
||||
value: '',
|
||||
emptyText: 'unlimited',
|
||||
allowBlank: true
|
||||
},
|
||||
{
|
||||
xtype: 'pvecheckbox',
|
||||
fieldLabel: gettext('Disconnect'),
|
||||
name: 'disconnect'
|
||||
}
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user