@@ -66,6 +66,7 @@ export class ApiManageComponent implements OnInit {
6666 const events_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n ) \. (?< host > [ a - z 0 - 1 . ] * ( m i s t | m i s t s y s ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] * ) # ! m a r v i s \/ ? (?< scope > o r g | s i t e ) ? \/ ? (?< period > [ 0 - 9 a - z ] * ) ? \/ ? (?< start > [ 0 - 9 ] * ) ? \/ ? (?< stop > [ 0 - 9 ] * ) ? \/ ? (?< site_id > [ 0 - 9 a - z - ] * ) ? / iys;
6767 const floorplans_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n ) \. (?< host > [ a - z 0 - 1 . ] * m i s t \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] * ) # ! c l i L o c a t i o n \/ (?< detail > v i e w | c o n f i g | v a l i d a t i o n P a t h | w a y f i n d i n g ) ? \/ ? (?< uuid > [ 0 - 9 a - f - ] * ) \/ ? ( f l o o r p l a n | b e a c o n s A n d Z o n e s ) ? \/ ? (?< site_id > [ 0 - 9 a - f - ] * ) ? / iys;
6868 const evpn_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n ) \. (?< host > [ a - z 0 - 1 . ] * ( m i s t | m i s t s y s ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] * ) # ! e v p n \/ s i t e \/ ? ( [ 0 - 9 ] \/ ) ? (?< site_id > [ 0 - 9 a - z _ - ] * ) ? ( \/ (?< topology_id > [ 0 - 9 a - f - ] * ) ) ? / yis;
69+ const site_wlan_template_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n ) \. (?< host > [ a - z 0 - 1 . ] * ( m i s t | m i s t s y s ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] * ) # ! w l a n \/ o r g W l a n D e t a i l \/ (?< template_id > [ 0 - 9 a - z _ - ] * ) \/ (?< wlan_id > [ 0 - 9 a - f - ] * ) \/ (?< site_id > [ 0 - 9 a - f - ] * ) / is;
6970 const site_common_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n ) \. (?< host > [ a - z 0 - 1 . ] * ( m i s t | m i s t s y s ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] * ) # ! (?< obj > [ a - z ] + ) \/ ? ( (?< detail > d e t a i l | s i t e | a d m i n | e d g e d e t a i l | c l u s t e r d e t a i l | n e w | v i e w ) \/ ) ? ( [ 0 - 9 ] \/ ) ? ( (?< obj_id > [ 0 - 9 a - z _ - ] * ) \/ ) ? (?< site_id > [ 0 - 9 a - f - ] * ) ? / yis;
7071 const site_common_objs = [ "ap" , "gateway" , "switch" , "assets" , "wlan" , "tags" , "psk" , "tunnels" , "clients" , "sdkclients" , "wiredclients" , "wxlan" , "security" , "switchconfig" , "pcap" ]
7172 const org_common_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n ) \. (?< host > [ a - z 0 - 1 . ] * ( m i s t | m i s t s y s ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] * ) # ! (?< obj > [ a - z ] + ) \/ ? ( (?< detail > d e t a i l | s i t e | a d m i n | e d g e d e t a i l | c l u s t e r d e t a i l | n e w | v i e w | t e m p l a t e | r f T e m p l a t e ) \/ ) ? ( [ 0 - 9 ] \/ ) ? ( (?< obj_id > [ 0 - 9 a - z _ - ] * ) ) / yis;
@@ -77,6 +78,7 @@ export class ApiManageComponent implements OnInit {
7778 const insights = insights_re . exec ( this . tabUrl ) ;
7879 const alarm = alarm_re . exec ( this . tabUrl ) ;
7980 const evpn = evpn_re . exec ( this . tabUrl ) ;
81+ const site_wlan_template = site_wlan_template_re . exec ( this . tabUrl ) ;
8082 const events = events_re . exec ( this . tabUrl ) ;
8183 const floorplans = floorplans_re . exec ( this . tabUrl ) ;
8284 const site_common = site_common_re . exec ( this . tabUrl ) ;
@@ -93,6 +95,8 @@ export class ApiManageComponent implements OnInit {
9395 this . alarmUrl ( alarm ) ;
9496 } else if ( evpn ) {
9597 this . evpnUrl ( evpn ) ;
98+ } else if ( site_wlan_template ) {
99+ this . siteWlanTemplateUrl ( site_wlan_template ) ;
96100 } else if ( events ) {
97101 this . eventsUrl ( events ) ;
98102 } else if ( floorplans ) {
@@ -473,6 +477,24 @@ export class ApiManageComponent implements OnInit {
473477 this . org_id = res . groups . org_id ;
474478 }
475479
480+ ////////////////////////////////////////////////////////////////////////////////////
481+ ////////////////////////////////////////////////////////////////////////////////////
482+ ////////////////////// ORG WLANS FUNCTION DISPATCHER FOR SITE URLS
483+ siteWlanTemplateUrl ( res : RegExpExecArray ) : void {
484+ this . org_id = res . groups . org_id ;
485+ this . site_id = res . groups . site_id ;
486+ this . obj_id = res . groups . wlan_id ;
487+
488+ this . quick_links . push (
489+ {
490+ url : "https://api." + res . groups . host + "/api/v1/orgs/" + this . org_id + "/wlans/" + res . groups . wlan_id ,
491+ name : "Org Wlan in use"
492+ } , {
493+ url : "https://api." + res . groups . host + "/api/v1/orgs/" + this . org_id + "/templates/" + res . groups . template_id ,
494+ name : "Org Config Template in use"
495+ } ) ;
496+ }
497+
476498 ////////////////////////////////////////////////////////////////////////////////////
477499 ////////////////////////////////////////////////////////////////////////////////////
478500 ////////////////////// COMMON URL FUNCTION DISPATCHER FOR SITE URLS
@@ -586,7 +608,7 @@ export class ApiManageComponent implements OnInit {
586608 this . setName ( "org" , res . groups . detail ) ;
587609 this . forgeOrg ( res . groups . host ) ;
588610 break ;
589- case "configuration" :
611+ case "configuration" :
590612 this . setName ( "site" , res . groups . detail ) ;
591613 this . forgeSite ( res . groups . host , res . groups . detail ) ;
592614 break ;
0 commit comments