Merged
Conversation
… to support user-defined timeout values for requests
…ltime stats from appliance update docstring in Orchestrator get_realtime_stats function to correspond to appliance equivalent function
… for timeout error when trying to call login to unreachable destination
… from `boolean` to `bool`
…o include preconfig ID instead of boolean
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.
0.15.3-a1 -- 2022-10-27
🚀 Features
EdgeConnect Telemetry Demo Example
✨ Added new code example!: A fully automated telemetry demo showing the potential for visualizing EdgeConnect metrics in tools external to Orchestrator.
Easily deployed via docker-compose with minimal inputs required, the demo connects to Orchestrator to discover appliances and then worker nodes directly retrieve data and metrics from EdgeConnect appliances. The data is written to a database and then visualized in Grafana dashboards.
Detailed documentation in the Examples section :ref:
ec_telemetry_demoAs with all examples, the code referenced is available from the GitHub repository within the examples folder.
Clone the repository and download the examples with:
$ git clone https://github.com/SPOpenSource/edgeconnect-python.gitInit Requests Timeout for Orchestrator & EdgeConnect
Introduced user-defined timeout settings for requests to Orchestrator and EdgeConnect. Previous behavior had a fixed timeout setting of 120 seconds for all requests.
New init variable for Orchestrator and EdgeConnect classes
timeoutas a tuple to define initial connect and read timeout values for underlying requests. Defaults to conservative values of 9.15s for connect and 12s for read. This allows users to turndown timeout timers more applicable to their environment rather than having to wait for connection to fail on previous default 120s timeout value inherited from the Requests library.Updated the following Orchestrator functions from Swagger:
~pyedgeconnect.Orchestrator.get_appliance_flowsAdded additional query parameters supporting custom time range filters for retrieving flows from appliances.
active_uptime_startandactive_uptime_endto support active flows, along withterm_uptime_startandterm_uptime_endto support ended flows.~pyedgeconnect.Orchestrator.create_preconfigPreviously function only returned boolean for success/failure. Now on success returns dictionary including assigned ID of the created preconfig, e.g.,
{ "id": 118 }Added the following EdgeConnect functions from Swagger:
from .ecos._cpu
~pyedgeconnect.EdgeConnect.get_appliance_cpufrom .ecos._system_info
~pyedgeconnect.EdgeConnect.get_appliance_system_info📚 Documentation
Added additional CSS for Sphinx docs to fit Aruba palette in a dark theme
🐛 Bug Fixes
📚 Docs Typo fixes:
https://https://~pyedgeconnect.Orchestrator.get_appliance_deploymentdocstring reponse used key of "licence" vs. "license"~pyedgeconnect.Orchestrator.get_appliance_inbound_shaperdocstring response was copy/paste from DNS proxy. Replaced with accurate inbound shaper response contents.~pyedgeconnect.Orchestrator.get_appliance_flowsdocstring parameter typo of "protocl" vs. "protocol"~pyedgeconnect.Orchestrator.get_audit_logdocstring parameter typo of return parameter type (boolean)" vs. "(bool)"🐛 Known Issues
The following two functions for the _ip_objects submodule exprience
errors at this time. These function do work in the Orchestrator UI:
:func:
~pyedgeconnect.Orchestrator.bulk_upload_address_groupand:func:
~pyedgeconnect.Orchestrator.bulk_upload_service_group