SDP mesh functions
- Externalized
update_sdp_mesh_dry
and_real
intoworkflow_steps
- Added
_update_sdp_single_pe
intoworkflow_steps
- Added necessary imports
Merge request reports
Activity
@karel.vanklink Maybe
_update_sdp_mesh
and_update_sdp_single_pe
can be optimized? The only difference in them is thatinventory
andpe_router_list
in extra_vars are swapped.added 9 commits
- 96ec5d43 - Increase initial connection timeout for LibreNMS client
- ec352a1a - Change type from LAGMember to dict for workflow step in trunk modification
- 0ee4de7e - make celery concurrency level 1
- ccb850d9 - incremented version for next development iteration
- eb52a306 - Edit changelog for version 2.13
- 029e1e87 - Include original exception when logging an error in the infoblox client
- a0518cfe - incremented version for next development iteration
- a1b7592c - Update Changelog.md
- 1e30ade7 - Show current license usage when updating Kentik license of a router
Toggle commit listadded 18 commits
Toggle commit list@karel.vanklink I need your help with
test_update_ibgp_mesh.py
to account for the changes in the workflow itself.@simone.spinelli Please could you review:
- workflows/router/update_ibgp_mesh
- utils/workflow_steps (for details)
requested review from @simone.spinelli
added 1 commit
- 9ea08606 - Reflect workflow changes in unit test for SDP update
- Resolved by Karel van Klink
@karel.vanklink Thanks for the fixes. There is another problem I forgot to mention: When the generated inventory is "empty", the Ansible hangs. E.g. in
_update_sdp_mesh
:inventory = generate_inventory_for_active_routers( router_role=RouterRole.PE, router_vendor=Vendor.NOKIA, exclude_routers=[subscription["router"]["router_fqdn"]] )
The corner case is that the router that is being processed in the workflow is the first ever Nokia PE, and it is correctly excluded from the inventory, then the resulting inventory is empty. Could a check be implemented in GSO such that in these cases of empty inventory a step would be skipped?
added 1 commit
- 10cd77c4 - Put LSO interactions inside a step group to reduce GUI clutter
added 1 commit
- 4edfd5aa - Add example skip playbook if inventory is empty
@Aleksandr.Kurbatov I wasn't able to find a way to automatically skip based on an empty inventory, but I added a line to
_update_sbp_mesh()
that might set you off in the right direction. Do note that I didn't test this properlyadded 1 commit
- 064275e4 - Add example skip playbook if inventory is empty
added 1 commit
- 34ecda72 - Updates to workflow_steps and promote_p_to_pe