Commit 45f16e0
Initial ND 4.2 Integration Work (#225)
* [ignore] Add generic logger facility through the Log class and logging config
* [ignore] Add Endpoints framework for ND API v1 (#186)
* [ignore] Add RestSend framework, enums, and shared unit test infrastructure (#185)
* [ignore] Fix broken imports after nd42_rest_send restructuring
* [minor_change] Add nd_local_user as a new network resource module for Nexus Dashboard v4.1.0 and higher.
* [ignore] First Pydantic implementation: Add Pydantic Models for nd_local_user.
* [ignore] Second Pydantic Implementation: Create a NDBaseModel to be inherited from future class models. Modify class models for local_user.
* [ignore] Pydantic Models: Modify and Clean both local_user.py and base.py based on comments. Add a get method and get_identifier_value function to NDBaseModel.
* [ignore] Pydantic ND base models and local_user models: Final proposition of core design adding new methods which will be used in NDConfigCollection and NDNetworkResourceModule classes as well as basic error handling and simple docstrings.
* [ignore] Pydantic ND Config Collection: Final proposition of core design changing existing methods and adding new ones which will be used in NDNetworkResourceModule class as well as basic error handling and simple docstrings.
* [ignore] Pydantic Base ND Network Resource Module: Final proposition of core design changing existing methods and adding new ones which will be used in future as a based for ND network resource modules as well as basic error handling and simple docstrings.
* [ignore] Modify nd_local_user based on Pydantic implementation and changes added to NDNetworkResourceModule.
* [ignore] Add api_endpoints for configuring endpoints and orchestrators for orchestrating crud api operations with model instances and endpoints.
* [ignore] Modifiy models/local_user to take full advantage of Pydantic built-in functionalities. Slightly modify models/base.py to enforce identifiers definitions in NDBaseModel subclasses. Added multiple notes to assert next steps.
* [ignore] Adapt the Network Resource Module architecture for ND to smart endpoints and Pydantic models modification (works for merge and replace states). Add comments for next steps.
* [ignore] Default to none and update condition for regarding in models/base.py.
* [ignore] Add choice for when no identifier is needed. Add quick comments and changes to models/local_user.py and api_endpoints/base.py
* [ignore] Complete orchestrators/base.py by making simple CRUD operations methods that work for single_identifier strategy (meant to be overridden if needed).
* [ignore] Fix and in nd_config_collections.py. Move to utils.py.
* [ignore] Rename NDNetworkResourceModule to NDStateMachine. Add file for NDNestedModel. Add types.file. Various Renaming and small Modifications across the repo. WIP.
* [ignore] Make a small change to NDModule request function.
* [ignore] Modify nd_state_machine to work with orchestrators/models/api_endpoints. Adapt api_endpoints, models, orchestrators accordingly. Integration Tests passing for nd_local_user module. Still WIP.
* [ignore] Add proper path dependencies and Ran black formatting.
* [ignore] Clean code for sanity purposes (except Pydantic import checks.
* [ignore] Restructure api_endpoints folder into endpoints -> v1. Fix some sanity issues.
* [ignore] Remove NDModule inheritence from NDStateMachine. Add first iteration of (Mock Pydantic objects/methods) to pass sanity checks for Pydantic importation.
* [ignore] Rename NDBaseSmartEndpoint to NDBaseEndpoint. Fix importation issues.
* [ignore] Replace all pydantic imports with pydantic_compat. Fix sanity issues.
* [ignore] Add NDOutput class. Modify NDStateMachine and nd_local_user accordingly
* [ignore] Update NDOutput class. Remove all fail_json dependencies in NDStateMachineand add custom Exception for it in common/exceptions dir. Set json mode for to_diff_dict method in NDBaseModel.
* [ignore] Fix serialization of model with minimal changes to base.py and local_user.py. Add method to NDBaseModel and apply relevant changes to nd_config_collection.
* [ignore] Complete nd_local_user integration test for creation and update asserts.
* [ignore] Finish integration test file for nd_local_user module. Remove Generic Class inheritence from NDConfigCollection. Clean Pydantic imports.
* [ignore] Fix sanity issues by enhancing pydantic_compat.py. Fix Black formatting.
* [ignore] Remove all TODO comments.
* [ignore] Update endpoints to match latest nd42_integration branch. Update orchestrators accordingly.
* [ignore] Update pydantic_compat.py to support extra Pydantic methods and classes.
* [ignore] Remove Python 2.7 compatibilities.
* [ignore] Fix comments and docstrings. made and static methods for class.
* [ignore] Slightly modify Exceptions handling in NDStateMachine. Remove self.send from check_mode guards in NDStateMachine. Fix documentation for nd_local_user.
* [ignore] Rename aaa_local_users.py to infra_aaa_local_users.py. Move models/local_user.py to new dir models/local_user.
* [ignore] Update integration tests for nd_local_user module.
* [ignore] Revert local users endpoints filename to aaa_local_users.py.
* [ignore] Change in NDStateMachine initialization to take advantage of from_ansible_config static method from NDConfigCollection.
* [ignore] Remove ValidationError import from nd_state_machine.py.
* [ignore] Add function to nd_local_user module. Slighty fix Documentation and Example sections in nd_local_user module. Remove Dict class inheritance from NDConstantMapping.
* [ignore] Make NDBaseOrchestrator a Generic class.
* [ignore] Enable CI unit tests
* [ignore] Add pydantic to requirements.txt
* temp update to pr branch list for ci
* Ansible ND 4.X Fabric Modules for iBGP, eBGP and External Fabric Types (#209)
* Fabric modules for ibgp,ebgp,external fabrics
* Update ibgp model enums
* Update pydantic model and module docstrings for ibgp
* Update pydantic model for ebgp
* Update ebgp module doc headers
* Update enums and pydantic model descriptions for external fabrics
* Update ebgp module doc strings
* Fix ansible sanity tests failures
* Black formatting
* Move common models into common location for import
* Fix black formatting issue
* Add unit tests for fabric endpoints
* Fix ansible sanity test failures
* Test cleanup
* Add ibgp testing params
* Fix for merged state and tests
* Add more properties in ibgp merged test
* Add more properties in ibgp replaced test
* Refactor merged fix
* Change name property to fabric_name
* Add nd_info into integration tests
* remove underscore between un & numbered
* Address review comments
* Fix list behavior bug and update module docs
* Make ansible sanity happy
* Make netflow_exporter udp_port optional
* Organize ibgp module doc header
---------
Co-authored-by: Matt Tarkington <mtarking@cisco.com>
* update actions
---------
Co-authored-by: Allen Robel <arobel@cisco.com>
Co-authored-by: Allen Robel <arobel@me.com>
Co-authored-by: Gaspard Micol <gmicol@cisco.com>
Co-authored-by: samitab <samitab@cisco.com>
Co-authored-by: Mike Wiebe <mwiebe@cisco.com>1 parent de87304 commit 45f16e0
98 files changed
Lines changed: 30111 additions & 77 deletions
File tree
- .github/workflows
- plugins
- module_utils
- common
- endpoints
- v1
- infra
- manage
- models
- local_user
- manage_fabric
- orchestrators
- rest
- protocols
- response_strategies
- modules
- tests
- integration
- targets
- nd_local_user/tasks
- nd_manage_fabric
- tasks
- vars
- sanity
- unit
- module_utils
- endpoints
- fixtures
- fixture_data
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | 202 | | |
204 | 203 | | |
205 | 204 | | |
| |||
242 | 241 | | |
243 | 242 | | |
244 | 243 | | |
245 | | - | |
| 244 | + | |
246 | 245 | | |
247 | 246 | | |
248 | 247 | | |
| |||
Whitespace-only changes.
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
0 commit comments