-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update common api default version 1.0 to 1.1 * Patch warning /api/profiler/1.0/reporting/columns.json returned status 400 (Bad Request), WARNING Exception raised fetching columns for triplet: msq, hos, slm #11 * Fix supported_versions (based on Cookie Auth + Version steelscript#48 ) * New simple example "versions" (#12)
- Loading branch information
Showing
7 changed files
with
87 additions
and
39 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Riverbed SteelScript for NetProfiler | ||
|
||
This package as part of [SteelScript](https://github.com/riverbed/steelscript) provides specific bindings for interacting with [Riverbed NetProfiler](https://www.riverbed.com/products/netprofiler) | ||
|
||
## License | ||
|
||
Copyright (c) 2019-2024 Riverbed Technology, Inc. | ||
|
||
SteelScript-NetProfiler is licensed under the terms and conditions of the MIT | ||
License accompanying the software ("License"). SteelScript-NetProfiler is | ||
distributed "AS IS" as set forth in the License. |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/usr/bin/env python | ||
''' | ||
' Riverbed Community SteelScript | ||
' | ||
' .py | ||
' Encoding: UTF8 | ||
' End of Line Sequence: LF | ||
' | ||
' Copyright (c) 2024 Riverbed Technology, Inc. | ||
' | ||
' This software is licensed under the terms and conditions of the MIT License | ||
' accompanying the software ("License"). This software is distributed "AS IS" | ||
' as set forth in the License. | ||
Usage example in Bash: | ||
export RIVERBED_NETPROFILER_HOST=n31-prf | ||
export RIVERBED_NETPROFILER_USERNAME=yourusername | ||
export RIVERBED_NETPROFILER_PASSWORD=****** | ||
python versions.py | ||
''' | ||
|
||
## Step 1. Import steelscript libraries in Python | ||
|
||
from steelscript.netprofiler.core import NetProfiler | ||
from steelscript.common.service import UserAuth | ||
|
||
import os | ||
|
||
## Step 2. Configure and connect the service object for NetProfiler | ||
|
||
host = os.getenv('RIVERBED_NETPROFILER_HOST') | ||
username = os.getenv('RIVERBED_NETPROFILER_USERNAME') | ||
password = os.getenv('RIVERBED_NETPROFILER_PASSWORD') | ||
|
||
auth = UserAuth(username, password) | ||
netprofiler_service = NetProfiler(host, auth=auth) | ||
|
||
## Step 3. Check versions info | ||
|
||
print(f"NetProfiler version: {netprofiler_service.version}") | ||
|
||
print(f"Supported API versions: {netprofiler_service.supported_versions}") | ||
|
||
print(f"Services API url: {netprofiler_service._services_api}") |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,10 @@ | |
|
||
setup_args = { | ||
'name': 'steelscript.netprofiler', | ||
'version': '24.2.1', | ||
'version': '24.10.1', | ||
'author': 'Riverbed Technology', | ||
'author_email': '[email protected]', | ||
'url': 'http://pythonhosted.org/steelscript', | ||
'url': 'https://github.com/riverbed/steelscript', | ||
'license': 'MIT', | ||
'description': 'Python module for interacting with Riverbed ' | ||
'NetProfiler with SteelScript', | ||
|
@@ -27,9 +27,8 @@ | |
SteelScript is a collection of libraries and scripts in Python and JavaScript | ||
for interacting with Riverbed Technology devices. | ||
For a complete guide to installation, see: | ||
More about SteelScript: https://github.com/riverbed/steelscript | ||
http://pythonhosted.org/steelscript/ | ||
''', | ||
|
||
'platforms': 'Linux, Mac OS, Windows', | ||
|
@@ -53,7 +52,7 @@ | |
), | ||
|
||
'install_requires': ( | ||
'steelscript>=24.2.0', | ||
'steelscript>=24.10.0', | ||
), | ||
|
||
'extras_require': { | ||
|
This file contains 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
This file contains 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