From e1b2f246a016720f2c2f6d39b76d4d334a7d40df Mon Sep 17 00:00:00 2001 From: Thomas Munzer Date: Fri, 10 May 2024 08:44:32 -0700 Subject: [PATCH] adding marvis minis test results quicklink --- .DS_Store | Bin 10244 -> 10244 bytes angular/package.json | 2 +- .../app/pages/api/manage/manage.component.ts | 13 +++++++++++++ angular/src/manifest.json | 2 +- angular/src/manifest_chrome.json | 2 +- angular/src/manifest_ffx.json | 2 +- 6 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.DS_Store b/.DS_Store index 053f1fc3556ae33c834f21d8a9db99aa8a6b317a..dbb9748c27a6ccc3d8c802813bacf3f3c1e93325 100644 GIT binary patch delta 1146 zcmeIvOGs346vy%Nz4^G;x#o3r)G-BXpd3vYj3TUPG|lWm)|govUrjbJjW#nWDm6te zvw~SV=d8~8eR`^Uss}Ar zRz-EI-Cnz2KTvO2+kM`S-ECoCYamqX4Tj7b_1iivb-w1-fXCP6H5hti4HI#9x5?~t zxbx?#IOdB;O`!3pS97>s3j delta 1100 zcmeH^Pe_w-7{{N_FTwZ44PRGoI%gOIDMDCTq=d4Jn*S)HW!fJ?W6El7;?%OBX)KEB zBJ0nwq6mUYVN$2k3aUc{MG<8k@=zIg3A}j7UY$GCp&;ni@ACaVzti)4KJkWl!*G@j zS7KYPBip~j-)L!S3hs}Dw+D{|5|y^TrTYw9Z!mCZYiD;b5{@Bds63Z9G9h2&o6N{8ibZ5# z#ZDgiIC0})HKnYff*NY6!%s82*~4DiI7kO!A{^#ejD7|<&KVM%=K>eG%nfdGi`(4g zF;95P3&wfR2R`wcNxm}8cV?9+n<`K)Rj53wTvaKbs!koCSh%S zw9Jr+g&c}l!KxVR*np2}6MsEh*hv$+ObK%e+6i)i5Iyvo8u~a&oD-bn6sJuS=S&xK zCa!RmYg}iDVUmn+hf&6Oz$2dVns*Ca)4c1_+oux7lT!|-HrQ`ZW){t4Z2Egk|0VrH JNr@>($qzqZ>CpfH diff --git a/angular/package.json b/angular/package.json index 889ced3..009cea4 100644 --- a/angular/package.json +++ b/angular/package.json @@ -1,6 +1,6 @@ { "name": "mist-extension", - "version": "3.7.0", + "version": "3.8.0", "description": "Generated with @larscom/ng-mist-extension", "scripts": { "start": "npm run watch", diff --git a/angular/src/app/pages/api/manage/manage.component.ts b/angular/src/app/pages/api/manage/manage.component.ts index e15254d..5333fd8 100644 --- a/angular/src/app/pages/api/manage/manage.component.ts +++ b/angular/src/app/pages/api/manage/manage.component.ts @@ -386,6 +386,17 @@ export class ApiManageComponent implements OnInit { } } } + forgeSiteDeviceSyntheticTest(detail: string | undefined, host: string, device_type:string): void { + if (detail && this.obj_id) { + const mac = this.getMac(this.obj_id) + if (mac) { + this.quick_links.push({ + url: "https://api." + host + "/api/v1/sites/" + this.site_id + "/synthetic_test/search?mac=" + mac, + name: "Marvis Minis Test Results" + }) + } + } + } //////////////////////////////////////////////////////////////////////////////////// ////////////////////// ORG OBJ FUNCTION forgeOrg(host: string) { @@ -650,6 +661,7 @@ export class ApiManageComponent implements OnInit { this.forgeSiteObjectStats("devices", res?.groups?.host, res?.groups?.detail, extra_params); this.forgeSiteObjectEvents("devices", res?.groups?.obj, res?.groups?.host, res?.groups?.detail); this.forgeSiteApLastConfig(res?.groups?.detail, res?.groups?.host, res?.groups?.obj); + this.forgeSiteDeviceSyntheticTest(res?.groups?.detail, res?.groups?.host, res?.groups?.obj); break; case "switch": if (["list", "topology", "location"].includes(this.obj_id)) this.obj_id = undefined; @@ -666,6 +678,7 @@ export class ApiManageComponent implements OnInit { this.forgeSiteObjectStats("devices", res?.groups?.host, res?.groups?.detail, extra_params); this.forgeSiteObjectEvents("devices", res?.groups?.obj, res?.groups?.host, res?.groups?.detail); this.forgeSiteDiscoveredSwitchUrl(res?.groups?.host); + this.forgeSiteDeviceSyntheticTest(res?.groups?.detail, res?.groups?.host, res?.groups?.obj); } break; case "assets": diff --git a/angular/src/manifest.json b/angular/src/manifest.json index 23d3112..8b7a091 100644 --- a/angular/src/manifest.json +++ b/angular/src/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "Mist Extension", "short_name": "mist-extension", - "version": "3.7.0", + "version": "3.8.0", "description": "Web Browser Extension for Mist Developpers to provide easier access to Mist APIs", "icons": { "16": "assets/favicon-16x16.png", diff --git a/angular/src/manifest_chrome.json b/angular/src/manifest_chrome.json index 23d3112..8b7a091 100644 --- a/angular/src/manifest_chrome.json +++ b/angular/src/manifest_chrome.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "Mist Extension", "short_name": "mist-extension", - "version": "3.7.0", + "version": "3.8.0", "description": "Web Browser Extension for Mist Developpers to provide easier access to Mist APIs", "icons": { "16": "assets/favicon-16x16.png", diff --git a/angular/src/manifest_ffx.json b/angular/src/manifest_ffx.json index d3115d6..65d5f98 100644 --- a/angular/src/manifest_ffx.json +++ b/angular/src/manifest_ffx.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "Mist Extension", "short_name": "mist-extension", - "version": "3.7.0", + "version": "3.8.0", "description": "Web Browser Extension for Mist Developpers to provide easier access to Mist APIs", "icons": { "16": "assets/favicon-16x16.png",