ND4.1: Validation of cisco.nd.rest module #49
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.
Description:
The ND Rest Module needs to be validated against our VXLAN as Code collection to ensure that everywhere our DCNM Rest Module is used we can replace it and it works.
Replace all instances of cisco.dcnm.dcnm_rest with cisco.nd.nd_rest
https://github.com/search?q=repo%3Anetascode%2Fansible-dc-vxlan+dcnm_rest&type=code&p=1
Update Ansible collection requirements to include cisco.nd
https://github.com/netascode/ansible-dc-vxlan-example/blob/main/requirements.yaml
Verify end to end workflows using the nd connection plugin
https://github.com/netascode/ansible-dc-vxlan-example/blob/main/requirements.yaml
Replace this line with ansible_network_os: cisco.nd.nd
Tested with the below playbook
hosts: nac-fabric1
any_errors_fatal: true
gather_facts: no
tasks:
name: Test simple GET request using nd_rest module
cisco.nd.nd_rest:
#path: "/api/v1/manage/fabricsSummary"
#path: "/api/v1/manage/inventory/switches"
#path: "/appcenter/cisco/ndfc/api/v1/lan-discovery/inventory/modules"
path: "/appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/fabrics/"
method: GET
register: result