catalystwan 2.0.0a0__py3-none-any.whl → 2.0.0a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- catalystwan/core/models/deserialize.py +1 -0
- {catalystwan-2.0.0a0.dist-info → catalystwan-2.0.0a1.dist-info}/METADATA +7 -95
- {catalystwan-2.0.0a0.dist-info → catalystwan-2.0.0a1.dist-info}/RECORD +6 -6
- {catalystwan-2.0.0a0.dist-info → catalystwan-2.0.0a1.dist-info}/WHEEL +1 -1
- {catalystwan-2.0.0a0.dist-info → catalystwan-2.0.0a1.dist-info}/LICENSE +0 -0
- {catalystwan-2.0.0a0.dist-info → catalystwan-2.0.0a1.dist-info}/top_level.txt +0 -0
|
@@ -47,6 +47,7 @@ class ModelDeserializer:
|
|
|
47
47
|
|
|
48
48
|
def __check_errors(self):
|
|
49
49
|
if self._exceptions:
|
|
50
|
+
print(self._exceptions)
|
|
50
51
|
# Put exceptions from current model first
|
|
51
52
|
self._exceptions.sort(key=lambda x: isinstance(x, CatalystwanModelValidationError))
|
|
52
53
|
current_model_errors = sum(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: catalystwan
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.0a1
|
|
4
4
|
Summary: Cisco Catalyst WAN SDK for Python
|
|
5
5
|
License: Apache License
|
|
6
6
|
Version 2.0, January 2004
|
|
@@ -225,103 +225,15 @@ Requires-Dist: requests >=2.32.3
|
|
|
225
225
|
Requires-Dist: typing-extensions >=4.12.2
|
|
226
226
|
Requires-Dist: urllib3 >=2.2.2
|
|
227
227
|
Requires-Dist: catalystwan-types ==2.0.0a0
|
|
228
|
-
Requires-Dist: catalystwan-v20-15 ==2.0.
|
|
229
|
-
Requires-Dist: catalystwan-v20-16 ==2.0.
|
|
228
|
+
Requires-Dist: catalystwan-v20-15 ==2.0.0a1
|
|
229
|
+
Requires-Dist: catalystwan-v20-16 ==2.0.0a1
|
|
230
230
|
Provides-Extra: test
|
|
231
231
|
Requires-Dist: pytest >=8.2.2 ; extra == 'test'
|
|
232
232
|
Provides-Extra: ver-2015
|
|
233
|
-
Requires-Dist: catalystwan-v20-15 ==2.0.
|
|
233
|
+
Requires-Dist: catalystwan-v20-15 ==2.0.0a1 ; extra == 'ver-2015'
|
|
234
234
|
Provides-Extra: ver-2016
|
|
235
|
-
Requires-Dist: catalystwan-v20-16 ==2.0.
|
|
235
|
+
Requires-Dist: catalystwan-v20-16 ==2.0.0a1 ; extra == 'ver-2016'
|
|
236
236
|
Provides-Extra: ver-all
|
|
237
|
-
Requires-Dist: catalystwan-v20-15 ==2.0.
|
|
238
|
-
Requires-Dist: catalystwan-v20-16 ==2.0.
|
|
237
|
+
Requires-Dist: catalystwan-v20-15 ==2.0.0a1 ; extra == 'ver-all'
|
|
238
|
+
Requires-Dist: catalystwan-v20-16 ==2.0.0a1 ; extra == 'ver-all'
|
|
239
239
|
|
|
240
|
-
Cisco Catalyst WAN SDK 2.0
|
|
241
|
-
==========================
|
|
242
|
-
|
|
243
|
-
Welcome to the official documentation for the Cisco Catalyst WAN SDK, a package designed for creating simple and parallel automatic requests via the official SD-WAN Manager API.
|
|
244
|
-
|
|
245
|
-
Overview
|
|
246
|
-
--------
|
|
247
|
-
|
|
248
|
-
Cisco Catalyst WAN SDK serves as a multiple session handler (provider, provider as a tenant, tenant) and is environment-independent. You just need a connection to any SD-WAN Manager.
|
|
249
|
-
|
|
250
|
-
Supported Catalystwan WAN Server Versions
|
|
251
|
-
-----------------------------------------
|
|
252
|
-
|
|
253
|
-
- 20.15
|
|
254
|
-
- 20.16
|
|
255
|
-
|
|
256
|
-
Important Notice: Version Incompatibility
|
|
257
|
-
-----------------------------------------
|
|
258
|
-
|
|
259
|
-
Cisco Catalyst WAN SDK Version 2.0 Incompatibility with Legacy Versions
|
|
260
|
-
We are excited to announce the release of Cisco Catalyst WAN SDK version 2.0.
|
|
261
|
-
This new version introduces a range of enhancements and features designed
|
|
262
|
-
to improve performance and usability. However, it is important to note that version 2.0
|
|
263
|
-
is not compatible with any previous legacy versions of the SDK.
|
|
264
|
-
|
|
265
|
-
Actions Recommended:
|
|
266
|
-
Backup: Ensure you have backups of your current projects before attempting to upgrade.
|
|
267
|
-
Review Documentation: Carefully review the updated documentation and release notes for guidance on migration and new features.
|
|
268
|
-
Test Thoroughly: Test your projects thoroughly in a development environment before deploying version 2.0 in production.
|
|
269
|
-
|
|
270
|
-
We appreciate your understanding and cooperation as we continue to enhance the Cisco Catalyst WAN SDK. Should you have any questions or require assistance, please reach out through our support channels.
|
|
271
|
-
|
|
272
|
-
Thank you for your continued support and feedback!
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
Installation
|
|
276
|
-
------------
|
|
277
|
-
|
|
278
|
-
To install the SDK, run the following command:
|
|
279
|
-
|
|
280
|
-
```bash
|
|
281
|
-
pip install catalystwan
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
Supported Python Versions
|
|
285
|
-
-------------------------
|
|
286
|
-
|
|
287
|
-
Python >= 3.8
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
Getting Started
|
|
291
|
-
---------------
|
|
292
|
-
|
|
293
|
-
To execute SDK APIs, you need to create a `ApiClient`. Use the `create_client()` method to configure a session, perform authentication, and obtain a `ApiClient` instance in an operational state.
|
|
294
|
-
|
|
295
|
-
### Example Usage
|
|
296
|
-
|
|
297
|
-
Here's a quick example of how to use the SDK:
|
|
298
|
-
|
|
299
|
-
```python
|
|
300
|
-
from catalystwan.core import create_client
|
|
301
|
-
|
|
302
|
-
url = "example.com"
|
|
303
|
-
username = "admin"
|
|
304
|
-
password = "password123"
|
|
305
|
-
|
|
306
|
-
with create_client(url=url, username=username, password=password) as client:
|
|
307
|
-
result = client.health.devices.get_devices_health()
|
|
308
|
-
print(result)
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
If you need to preform more complex operations that require models, they can utilize an alias: `m`.
|
|
312
|
-
```python
|
|
313
|
-
|
|
314
|
-
with create_client(...) as client:
|
|
315
|
-
result = client.admin.aaa.update_aaa_config(
|
|
316
|
-
client.admin.aaa.m.Aaa(
|
|
317
|
-
accounting: True,
|
|
318
|
-
admin_auth_order: False,
|
|
319
|
-
audit_disable: False,
|
|
320
|
-
auth_fallback: False,
|
|
321
|
-
auth_order: ["local"]
|
|
322
|
-
)
|
|
323
|
-
)
|
|
324
|
-
print(result)
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
Using an alias allows for easier access and management of models, simplifying workflows and improving efficiency. This approach helps streamline operations without requiring direct integration with underlying models, making them more user-friendly and scalable.
|
|
@@ -15,10 +15,10 @@ catalystwan/core/types.py,sha256=X-u8OdRkCmJFA7NWZIgsrxvu83vFoDey5Z4Bqha0fdc,702
|
|
|
15
15
|
catalystwan/core/version.py,sha256=cVKyfW_COPiF961Wlo3Gf5JL-2ZoFC1TfEfh49EUBEg,2959
|
|
16
16
|
catalystwan/core/vmanage_auth.py,sha256=dJwxtA6XgOSghlrhW4G2kBbNaTHBPsTBSmg4-kuMLGc,11019
|
|
17
17
|
catalystwan/core/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
|
-
catalystwan/core/models/deserialize.py,sha256=
|
|
18
|
+
catalystwan/core/models/deserialize.py,sha256=eYuLmn04j5kzvMs8MXlPmBf9B1uFaW-utksthbViKk4,8308
|
|
19
19
|
catalystwan/core/models/serialize.py,sha256=RW8zJ4NUMwIBtOaoLLuFTx5WS2rQdcfKiARjA3XX-W0,5110
|
|
20
|
-
catalystwan-2.0.
|
|
21
|
-
catalystwan-2.0.
|
|
22
|
-
catalystwan-2.0.
|
|
23
|
-
catalystwan-2.0.
|
|
24
|
-
catalystwan-2.0.
|
|
20
|
+
catalystwan-2.0.0a1.dist-info/LICENSE,sha256=97ROi91Vxrj_Jio2v8FI9E8-y6x2uYdQRaFlrEbVjkc,11375
|
|
21
|
+
catalystwan-2.0.0a1.dist-info/METADATA,sha256=wAB7GAuqsLAsrv9kK8eC6yYZt20EavOUG8kHKZ0EjBU,14487
|
|
22
|
+
catalystwan-2.0.0a1.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
23
|
+
catalystwan-2.0.0a1.dist-info/top_level.txt,sha256=0mv3rTOajNOAxvPHv_tHJpukVsP0plO5rD1ORKVDUM4,12
|
|
24
|
+
catalystwan-2.0.0a1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|