From e4c78cf3807ac108ac73617ecde552e83326cd86 Mon Sep 17 00:00:00 2001 From: Jiaqing Zhao Date: Thu, 21 Apr 2022 14:17:51 +0800 Subject: Revert "Filtered the IP address to IPv4 on sessions page" In bmcweb/41d61c8 ("Convert IPv4-mapped IPv6 ClientIP back to IPv4"), bmcweb automatically converts IPv4 addresses to IPv4 format, workaround in webui-vue is no longer needed. The original patch also brings issue with displaying IPv6 addresses in Sessions tab. This reverts commit d902aa7b4f98b49d2a20ad8253bc15afd77e9349. Tested: Both IPv4 and IPv6 addresses are displayed correctly in Sessions. Change-Id: Ib56398de51526ee72168b5bf8427278bcb6f9c17 Signed-off-by: Jiaqing Zhao --- src/store/modules/SecurityAndAccess/SessionsStore.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/store/modules/SecurityAndAccess/SessionsStore.js b/src/store/modules/SecurityAndAccess/SessionsStore.js index 37ba9fc2..54607ab6 100644 --- a/src/store/modules/SecurityAndAccess/SessionsStore.js +++ b/src/store/modules/SecurityAndAccess/SessionsStore.js @@ -25,14 +25,10 @@ const SessionsStore = { ) .then((sessionUris) => { const allConnectionsData = sessionUris.map((sessionUri) => { - //For filtering IP address to IPv4 - let filteredIPAddress = sessionUri.data?.ClientOriginIPAddress.slice( - 7 - ); return { clientID: sessionUri.data?.Oem?.OpenBMC.ClientID, username: sessionUri.data?.UserName, - ipAddress: filteredIPAddress, + ipAddress: sessionUri.data?.ClientOriginIPAddress, uri: sessionUri.data['@odata.id'], }; }); -- cgit v1.2.3