From d322d232033cee7bc56ab65067c5d436176ca51b Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Thu, 30 Sep 2021 19:10:45 +0200 Subject: [PATCH] WIP NCM --- pandora_console/operation/agentes/ver_agente.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pandora_console/operation/agentes/ver_agente.php b/pandora_console/operation/agentes/ver_agente.php index 1f47f75d17..bef252b8ae 100644 --- a/pandora_console/operation/agentes/ver_agente.php +++ b/pandora_console/operation/agentes/ver_agente.php @@ -1533,6 +1533,11 @@ if ($url_route_analyzer) { } } +$ncm_tab = enterprise_hook('networkconfigmanager_console_tab'); +if ($ncm_tab === ENTERPRISE_NOT_HOOK) { + $ncm_tab = ''; +} + // GIS tab. $gistab = []; if ($config['activate_gis']) { @@ -1770,6 +1775,7 @@ $onheader = [ 'wux_console' => $wux_console_tab, 'url_route_analyzer' => $url_route_analyzer_tab, 'sap_view' => $saptab, + 'ncm_view' => $ncm_tab, 'external_tools' => $external_tools, ]; @@ -1941,6 +1947,10 @@ switch ($tab) { $tab_name = 'SAP View'; break; + case 'ncm': + $tab_name = 'Network configuration'; + break; + case 'external_tools': $tab_name = 'External Tools'; break; @@ -2069,6 +2079,10 @@ switch ($tab) { include 'general/sap_view.php'; break; + case 'ncm': + enterprise_hook('ncm_agent_tab', [$id_agente, false]); + break; + case 'external_tools': include 'external_tools.php'; break;