Skip to content

Commit 9ce8779

Browse files
committed
add RRM QLs
1 parent d60e97a commit 9ce8779

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

angular/src/app/pages/api/manage/manage.component.ts

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ export class ApiManageComponent implements OnInit {
9393
const floorplans_re = /https:\/\/(manage|integration|manage-staging)\.(?<host>[a-z0-9.]*(mist|mistsys|mist-federal)\.com)\/admin\/\?org_id=(?<org_id>[0-9a-f-]{36})#!cliLocation\/(?<detail>view|config|validationPath|wayfinding)?\/?(?<uuid>[0-9a-f-]{36})\/?(floorplan|beaconsAndZones)?\/?(?<site_id>[0-9a-f-]{36})?/iys;
9494
const site_evpn_re = /https:\/\/(manage|integration|manage-staging)\.(?<host>[a-z0-9.]*(mist|mistsys|mist-federal)\.com)\/admin\/\?org_id=(?<org_id>[0-9a-f-]{36})#!evpn\/site\/?([0-9]\/)?(?<site_id>[0-9a-z_-]*)?(\/(?<topology_id>[0-9a-f-]{36}))?/yis;
9595
const site_wlan_template_re = /https:\/\/(manage|integration|manage-staging)\.(?<host>[a-z0-9.]*(mist|mistsys|mist-federal)\.com)\/admin\/\?org_id=(?<org_id>[0-9a-f-]{36})#!wlan\/orgWlanDetail\/(?<template_id>[0-9a-z_-]*)\/(?<wlan_id>[0-9a-f-]{36})\/(?<site_id>[0-9a-f-]{36})/is;
96-
const site_common_re = /https:\/\/(manage|integration|manage-staging)\.(?<host>[a-z0-9.]*(mist|mistsys|mist-federal)\.com)\/admin\/\?org_id=(?<org_id>[0-9a-f-]{36})#!(?<obj>[a-z]+)\/?((?<detail>detail|site|admin|edgedetail|clusterdetail|new|view)\/)?([0-9]\/)?((?<obj_id>[0-9a-z_-]*)\/)?(?<site_id>[0-9a-f-]{36})?/yis;
97-
const site_common_objs = ["ap", "gateway", "switch", "assets", "wlan", "tags", "psk", "tunnels", "clients", "guestclients", "sdkclients", "wiredclients", "wxlan", "security", "switchconfig", "pcap", "siteedge", "cellularedges"]
96+
const site_common_re = /https:\/\/(manage|integration|manage-staging)\.(?<host>[a-z0-9.]*(mist|mistsys|mist-federal)\.com)\/admin\/\?org_id=(?<org_id>[0-9a-f-]{36})#!(?<obj>[a-z]+)\/?((?<detail>detail|site|admin|edgedetail|clusterdetail|new|view|band)\/)?(?<inter>[0-9]*\/)?((?<obj_id>[0-9a-z_-]*)\/)?(?<site_id>[0-9a-f-]{36})?/yis;
97+
const site_common_objs = ["ap", "gateway", "switch", "assets", "wlan", "tags", "psk", "tunnels", "clients", "guestclients", "sdkclients", "wiredclients", "wxlan", "security", "switchconfig", "pcap", "siteedge", "cellularedges", "rrm"]
9898
const org_evpn_re = /https:\/\/(manage|integration|manage-staging)\.(?<host>[a-z0-9.]*(mist|mistsys|mist-federal)\.com)\/admin\/\?org_id=(?<org_id>[0-9a-f-]{36})#!evpn\/org(\/(?<topology_id>[0-9a-f-]{36}))?/yis;
9999
const org_common_re = /https:\/\/(manage|integration|manage-staging)\.(?<host>[a-z0-9.]*(mist|mistsys|mist-federal)\.com)\/admin\/\?org_id=(?<org_id>[0-9a-f-]{36})#!(?<obj>[a-zA-Z]+)\/?((?<detail>detail|site|admin|edgedetail|clusterdetail|new|view|template|rfTemplate|provider|nacportals|pskportals)\/)?([0-9]\/)?(?<obj_id>[0-9a-z_-]*)\??(?<query_params>[0-9a-z_=&-]*)?/yis;
100100
const org_common_objs = ["orgtags", "misttunnels", "templates", "switchtemplate", "gatewaytemplates", "hubs", "deviceprofiles", "org", "orgpsk", "configuration", "auditlogs", "apinventory", "adminconfig", "subscription", "edge", "vpns", "template", "rftemplates", "services", "networks", "applicationpolicy", "authpolicylabels", "naccertificates", "nacpolicy", "nacidentityproviders", "onboardingworkflow", "sdk", "premiumanalytics", "private5g", "securityevents", "nacclients", "nacendpoints", "sitetemplates"];
@@ -872,7 +872,22 @@ export class ApiManageComponent implements OnInit {
872872
this.setName("other device", res?.groups?.detail);
873873
this.forgeSiteOtherDevices(res?.groups?.host, res?.groups?.detail);
874874
break;
875-
875+
case "rrm":
876+
console.log(res?.groups)
877+
var band = (res.groups.inter || "5").replace("/", "");
878+
var band_text = band;
879+
if (band_text=="24") band_text = "2.4";
880+
this.quick_links.push(
881+
{
882+
url: "https://api." + res?.groups?.host + "/api/v1/sites/" + this.site_id + "/rrm/current",
883+
name: "Site RRM Info"
884+
}, {
885+
url: "https://api." + res?.groups?.host + "/api/v1/sites/" + this.site_id + "/rrm/neighbors/band/" + band,
886+
name: "Site RRM Neighbors (" + band + "GHz)"
887+
}, {
888+
url: "https://api." + res?.groups?.host + "/api/v1/sites/" + this.site_id + "/rrm/events?band=" + band,
889+
name: "Site RRM Events (" + band + "GHz)"
890+
});
876891
}
877892
}
878893
}
@@ -1067,9 +1082,9 @@ export class ApiManageComponent implements OnInit {
10671082
this.setName("Psk Portals", res?.groups?.detail);
10681083
this.quick_links.push({ url: "https://api." + res?.groups?.host + "/api/v1/orgs/" + this.org_id + "/pskportals", name: this.obj_name });
10691084
break;
1070-
case "nacportals":
1071-
this.setName("NAC Portals", res?.groups?.detail);
1072-
this.quick_links.push({ url: "https://api." + res?.groups?.host + "/api/v1/orgs/" + this.org_id + "/nacportals", name: this.obj_name });
1085+
case "nacportals":
1086+
this.setName("NAC Portals", res?.groups?.detail);
1087+
this.quick_links.push({ url: "https://api." + res?.groups?.host + "/api/v1/orgs/" + this.org_id + "/nacportals", name: this.obj_name });
10731088
break;
10741089
}
10751090
break;

0 commit comments

Comments
 (0)