Fix POAP and PreProvision Workflows #427
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue(s)
Related Collection Role
Related Data Model Element
Proposed Changes
This update allows devices to be discovered using discovery mode, poap and pre-provision workflows. Previously the solution did not allow both poap and pre-provision in the same datafile.
Note:
poap.boostrap
setting under the device is only used for POAP mode without pre-provision first. It is not used by a pre-provision or pre-provision + POAP workflow.Test Notes
The following data model was used for testing these changes:
TestCase 1:
State Before Running the Playbook
State After Running the Playbook
ansible-playbook -i hosts.stage.yml vxlan.yml --tags cr_manage_switches
poap.boostrap
istrue
device serial_number
andpoap.preprovision.serial_number
match and they are using thefake temporary serial_number
.Rerun is idempotent
TestCase 2:
State Before Running the Playbook
Update the data model to change out the fake SN with the real SN for
prod-leaf1
This will trigger POAP for prod-leaf1
State After Running the Playbook
ansible-playbook -i hosts.stage.yml vxlan.yml --tags cr_manage_switches
Rerun is idempotent
Cisco NDFC Version
TestCase 3:
State Before Running the Playbook
Update the data model to comment out all switches and run the remove role
ansible-playbook -i hosts.stage.yml vxlan.yml --tags rr_manage_switches
All switches are removed properly
Checklist