spopensource / edgeconnect-python Goto Github PK
View Code? Open in Web Editor NEWPython wrapper for Aruba Orchestrator and Edge Connect API
License: MIT License
Python wrapper for Aruba Orchestrator and Edge Connect API
License: MIT License
A few methods in pyedgeconnect use return_type="full_response"
to return a requests.model.Response object, however, while the docstring has the properly documented return type, the definition line type-hint incorrectly often has dict
current
def get_appliance_stats_minute_file(
self,
file: str,
) -> dict:
instead of
def get_appliance_stats_minute_file(
self,
file: str,
) -> requests.Response:
Orchestrator.appliance_resync() function is returning a 404 when called, using /applianceResyncSynchronize as an endpoint.
Endpoint in Swagger documented as /applianceResync
The get_all_users() method is implemented using the post method as opposed to get. File _users.py line 45 should be corrected to "return self._get("/users")".
Currently EdgeConnect.login and Orchestrator.login functions return True when response received from EdgeConnect appliance or Orchestrator respectively even if status code isn't 200 or valid cookie isn't included
Passing the Orchestrator.upldate_appliance_access_group() method will pass the default value of "None" if either the appliance groups list or the appliance regions lists are not passed. This returns a HTTP 400 "Received Null value for group or region". A blank list must be passed currently to overcome this error.
The preconfig generator example looks for a column in CSV file for serial_number
, however, it doesn't use the data when saving the preconfig on Orchestrator to match against an appliance
# Set value for serial number if provided
appliance_serial = row.get("serial_number")
if appliance_serial is None:
appliance_serial = ""
else:
pass
When orch.create_preconfig() is called, it doesn't assign this to the parameter serial_number:
orch.create_preconfig(
preconfig_name=row["hostname"],
yaml_preconfig=yaml_preconfig,
auto_apply=auto_apply,
tag=row["hostname"],
### MISSING -- serial_number = appliance_serial,
comment=f"Created/Uploaded @ {comment_timestamp}",
)
get_timeseries_stats_tunnel_single_appliance method has a mandatory query parameter 'tunnelName.' Currently added to endpoint as the same name as the python variable 'tunnel_name' which does not properly query the API
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.