Skip to content

Conversation

sivakasi-cisco
Copy link

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

@sivakasi-cisco
Copy link
Author

@@ -156,7 +156,7 @@ ansible_connection: ansible.netcommon.httpapi
ansible_httpapi_port: 443
ansible_httpapi_use_ssl: true
ansible_httpapi_validate_certs: false
ansible_network_os: cisco.dcnm.dcnm
ansible_network_os: cisco.nd.nd
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed in the other PR I think we should document both options here once we support both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants