Merge pull request #218 from stephb9959/main

[WIFI-13803] Added fingerprint column to wifi analysis
This commit is contained in:
Charles Bourque
2024-06-04 08:56:08 -04:00
committed by GitHub
5 changed files with 21 additions and 3 deletions

4
package-lock.json generated
View File

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

View File

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

View File

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

View File

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