ui: traffic-control: include ipv6 in 'all' networks
by including '::/0' too Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
963b7ec51b
commit
91abfef049
|
@ -195,7 +195,7 @@ Ext.define('PBS.window.TrafficControlEdit', {
|
||||||
let isCreate = me.up('window').isCreate;
|
let isCreate = me.up('window').isCreate;
|
||||||
|
|
||||||
if (!values.network) {
|
if (!values.network) {
|
||||||
values.network = '0.0.0.0/0';
|
values.network = ['0.0.0.0/0', '::/0'];
|
||||||
} else {
|
} else {
|
||||||
values.network = values.network.split(/\s*,\s*/);
|
values.network = values.network.split(/\s*,\s*/);
|
||||||
}
|
}
|
||||||
|
@ -287,7 +287,7 @@ Ext.define('PBS.window.TrafficControlEdit', {
|
||||||
xtype: 'proxmoxtextfield',
|
xtype: 'proxmoxtextfield',
|
||||||
fieldLabel: gettext('Network(s)'),
|
fieldLabel: gettext('Network(s)'),
|
||||||
name: 'network',
|
name: 'network',
|
||||||
emptyText: gettext('0.0.0.0/0 (Apply on all Networks)'),
|
emptyText: gettext('0.0.0.0/0, ::/0 (Apply on all Networks)'),
|
||||||
autoEl: {
|
autoEl: {
|
||||||
tag: 'div',
|
tag: 'div',
|
||||||
'data-qtip': gettext('A comma-separated list of networks to apply the (shared) limit.'),
|
'data-qtip': gettext('A comma-separated list of networks to apply the (shared) limit.'),
|
||||||
|
@ -441,7 +441,7 @@ Ext.define('PBS.window.TrafficControlEdit', {
|
||||||
me.load({
|
me.load({
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
let data = response.result.data;
|
let data = response.result.data;
|
||||||
if (data.network?.length === 1 && data.network[0] === '0.0.0.0/0') {
|
if (data.network?.length === 2 && data.network[0] === '0.0.0.0/0' && data.network[1] === '::/0') {
|
||||||
delete data.network;
|
delete data.network;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue