[WIFI-13803] Added fingerprint column to wifi analysis

Signed-off-by: Charles <charles.bourque96@gmail.com>
This commit is contained in:
Charles
2024-06-04 08:55:35 -04:00
parent e250bd38f8
commit 849ea9f7b2
5 changed files with 21 additions and 3 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "ucentral-client",
"version": "3.0.2(9)",
"version": "3.1.0(2)",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "ucentral-client",
"version": "3.0.2(9)",
"version": "3.1.0(2)",
"license": "ISC",
"dependencies": {
"@chakra-ui/anatomy": "^2.1.1",

View File

@@ -1,6 +1,6 @@
{
"name": "ucentral-client",
"version": "3.0.2(9)",
"version": "3.1.0(2)",
"description": "",
"private": true,
"main": "index.tsx",

View File

@@ -59,6 +59,7 @@ export type DeviceInterfaceStatistics = {
dynamic_vlan?: number;
inactive: number;
ipaddr_v4: string;
fingerprint?: object;
rssi: number;
rx_bytes: number;
rx_duration: number;

View File

@@ -28,6 +28,7 @@ export type ParsedAssociation = {
txNss: number | string;
recorded: number;
dynamicVlan?: number;
fingerprint?: object;
};
type Props = {
@@ -77,6 +78,14 @@ const WifiAnalysisAssociationsTable = ({ data, ouis, isSingle }: Props) => {
isMonospace: true,
alwaysShow: true,
},
{
id: 'ssid',
Header: 'SSID',
Footer: '',
accessor: 'ssid',
customWidth: '35px',
alwaysShow: true,
},
{
id: 'ips',
Header: 'IPs',
@@ -84,6 +93,13 @@ const WifiAnalysisAssociationsTable = ({ data, ouis, isSingle }: Props) => {
Cell: (v) => ipCell(v.cell.row.original),
disableSortBy: true,
},
{
id: 'fingerprint',
Header: 'Fingerprint',
Footer: '',
Cell: (v) => Object.values(v.cell.row.original.fingerprint ?? {}).join(', '),
disableSortBy: true,
},
{
id: 'vendor',
Header: t('controller.wifi.vendor'),

View File

@@ -105,6 +105,7 @@ const parseAssociations = (data: { data: DeviceStatistics; recorded: number }, r
txNss: association.tx_rate.nss ?? '-',
recorded: data.recorded,
dynamicVlan: association.dynamic_vlan,
fingerprint: association.fingerprint,
});
}
}