[pve-devel] [RFC manager 1/1] fix #4442: node/qemu: Use firewallLogView panel for firewall logs
Christian Ebner
c.ebner at proxmox.com
Mon Jan 30 10:07:14 CET 2023
Using the firewall log view panel allows to filter not only by date, but also by
time (up to minute precision).
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
www/manager6/node/Config.js | 5 +++--
www/manager6/qemu/Config.js | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/www/manager6/node/Config.js b/www/manager6/node/Config.js
index f8577b0f..31a1fc7f 100644
--- a/www/manager6/node/Config.js
+++ b/www/manager6/node/Config.js
@@ -387,12 +387,13 @@ Ext.define('PVE.node.Config', {
if (caps.nodes['Sys.Syslog']) {
me.items.push(
{
- xtype: 'proxmoxLogView',
+ xtype: 'proxmoxFirewallLogView',
title: gettext('Log'),
iconCls: 'fa fa-list',
groups: ['firewall'],
onlineHelp: 'chapter_pve_firewall',
- url: '/api2/extjs/nodes/' + nodename + '/firewall/log',
+ url: '/nodes/' + nodename + '/firewall/log',
+ log_select_timespan: true,
itemId: 'firewall-fwlog',
},
{
diff --git a/www/manager6/qemu/Config.js b/www/manager6/qemu/Config.js
index 94c540c5..f78ebc67 100644
--- a/www/manager6/qemu/Config.js
+++ b/www/manager6/qemu/Config.js
@@ -383,8 +383,9 @@ Ext.define('PVE.qemu.Config', {
iconCls: 'fa fa-list',
onlineHelp: 'chapter_pve_firewall',
itemId: 'firewall-fwlog',
- xtype: 'proxmoxLogView',
- url: '/api2/extjs' + base_url + '/firewall/log',
+ xtype: 'proxmoxFirewallLogView',
+ url: base_url + '/firewall/log',
+ log_select_timespan: true,
},
);
}
--
2.30.2
More information about the pve-devel
mailing list