From 045709c5067e1ecbf88ba0f05e2d31a066d7a7ae Mon Sep 17 00:00:00 2001 From: Teresa Ho Date: Mon, 15 Apr 2024 11:23:58 -0400 Subject: [PATCH] Remove display of mgmt IP in host inventory This commit removes the display of host management IP in the host detail overview. Test Plan: PASS: Ensure that host detail overview can be displayed Story: 2010722 Task: 49867 Depends-on: https://review.opendev.org/c/starlingx/config/+/915303 Change-Id: I4b9e90b9d03b499857aa8fc42f169748470c34f2 Signed-off-by: Teresa Ho --- .../starlingx-dashboard/starlingx_dashboard/api/sysinv.py | 2 +- .../admin/inventory/templates/inventory/_detail_overview.html | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/api/sysinv.py b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/api/sysinv.py index 7d5aa298..d326d8fb 100644 --- a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/api/sysinv.py +++ b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/api/sysinv.py @@ -852,7 +852,7 @@ class Host(base.APIResourceWrapper): 'apparmor', 'location', 'serialid', 'operational', 'administrative', 'invprovision', 'peers', 'availability', 'uptime', 'task', 'capabilities', - 'created_at', 'updated_at', 'mgmt_mac', 'mgmt_ip', + 'created_at', 'updated_at', 'mgmt_mac', 'bm_ip', 'bm_type', 'bm_username', 'config_status', 'vim_progress_status', 'patch_current', 'requires_reboot', 'boot_device', 'rootfs_device', diff --git a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/templates/inventory/_detail_overview.html b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/templates/inventory/_detail_overview.html index ae4ceffa..8d1bba82 100644 --- a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/templates/inventory/_detail_overview.html +++ b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/templates/inventory/_detail_overview.html @@ -24,8 +24,6 @@
{% trans "Management MAC" %}
{{ host.mgmt_mac }}
-
{% trans "Management IP" %}
-
{{ host.mgmt_ip }}
{% trans "Serial ID" %}
{{ host.serialid }}
{% trans "Location" %}