v2.0a19#81
Merged
Merged
Conversation
added 13 commits
April 27, 2026 07:04
…s for site creation
…ed optional duration attribute support
…generate_timestamp_str
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This release introduces MSP tenant connection management, a new Switches monitoring module, expanded troubleshooting event capabilities, ISO location validation for site creation, and refactored shared monitoring utilities.
New Features
MSPBaseclass — aNewCentralBasesubclass for Managed Service Provider workflowsget_tenant_connection(tenant_name, tenant_workspace_id)performs an RFC 8693 token exchange and returns an isolatedTenantBaseconnection scoped to a specific tenant's Central environmenttenant_workspace_idreturn the sameTenantBaseinstance without re-running the exchangeclose_tenant_connection(tenant_workspace_id)closes a single cached tenant connectionget_tenant_id(tenant_name)resolves a tenant display name to its GLP workspace IDTenantBaseclass that overrides_renew_token()to re-exchange the MSP parent token automatically when a tenant-scoped token expiresMonitoringSwitchesclass with the following methods:get_all_switches,get_switches— paginated switch retrieval with filter and sort supportget_switch_details— fetch details for a specific switch by serial numberget_stack_members— retrieve stack members for a stacked switchget_switch_hardware_categories— hardware category data for a switchget_switch_lag— LAG (Link Aggregation Group) informationget_switch_interfaces— interface list with optional filtering and paginationget_switch_vlans— VLAN membership data for a switchget_topn_interface_trends— top-N interface utilization trendsget_switch_interface_trends— per-interface trend data over a time rangeget_switch_hardware_trends— hardware utilization trends (CPU, memory, etc.)get_switch_interface_poe— PoE usage data per interfaceget_switch_vsx— VSX (Virtual Switching Extension) state for a switchlist_event_filtersmethod toTroubleshootingandDeviceclasses to retrieve available event filter optionsget_event_extra_attributesmethod to fetch additional metadata fields for a specific event typelist_eventsnow accepts an optionaldurationparameter for time-range based filteringSite.create_site()now validatescountry,state, andcityinputs against ISO 3166 standards via the newvalidate_iso_locationutility before submitting the API requestpycountrydependency (26.2.16) to support ISO validationImprovements
validate_device_serial,validate_central_conn_and_serial,generate_timestamp_str, andclean_switch_trend_datafrom per-module private helpers into sharedmonitoring_utilsso APs, Gateways, and Switches all use the same validation path_renew_token()hook toNewCentralBase— subclasses can now override token renewal behavior without patchingcommand()LoginErrorandValueErrorare now re-raised directly fromcommand()instead of being wrapped inResponseError, making authentication failures easier to catch programmaticallyaccess_token, providing clearer guidance on verifying client credentials and token URLERRORlevel instead ofDEBUGdocs/modules/new_monitoring.mddocs/modules/msp.md