Skip to content

L3out module#276

Draft
skaszlik wants to merge 2 commits into
CiscoDevNet:developfrom
skaszlik:l3out_module
Draft

L3out module#276
skaszlik wants to merge 2 commits into
CiscoDevNet:developfrom
skaszlik:l3out_module

Conversation

@skaszlik
Copy link
Copy Markdown

Related Issue(s)

#235

Proposed Changes

Example playbook:

    - name: TEST1 - Create L3Out with routed interface and BGP (IPv4)
      cisco.nd.nd_l3out:
        fabric: "{{ test_fabric }}"
        state: merged
        config:
          - name: "{{ l3out_routed_bgp }}"
            fabric1_name: "{{ fabric1_name }}"
            fabric2_name: "{{ fabric2_name }}"
            vrf1_name: "{{ vrf1_name }}"
            vrf2_name: "{{ vrf2_name }}"
            configured_fabrics: both
            ip_version: ipv4
            connectivity_details:
              routing_interface_type: routed
              links:
                - mtu: "{{ mtu_jumbo }}"
                  ipv4_mask_length: "{{ link1_ipv4_mask }}"
                  switch1_details:
                    switch_id: "{{ switch1_id }}"
                    interface_name: "{{ routed_intf1_sw1 }}"
                    ipv4_address: "{{ link1_ipv4_sw1 }}"
                  switch2_details:
                    switch_id: "{{ switch2_id }}"
                    interface_name: "{{ routed_intf1_sw2 }}"
                    ipv4_address: "{{ link1_ipv4_sw2 }}"
            routing_details:
              routing_protocol: bgp
              fabric1_details:
                ipv4_peering_details:
                  ipv4_route_map_in: "{{ ipv4_route_map_in }}"
                  ipv4_route_map_out: "{{ ipv4_route_map_out }}"

Test Notes

Cisco Nexus Dashboard Version

Related ND API Resource Category

  • analyze
  • infa
  • manage
  • onemanage
  • other

Checklist

  • Latest commit is rebased from develop with merge conflicts resolved
  • New or updates to documentation has been made accordingly
  • Assigned the proper reviewers

@mtarking
Copy link
Copy Markdown
Collaborator

This contains both ACL and L3Out. Please limit to one module and its subsequent imports.

- Implement comprehensive test cases for L3Out creation, update, replace, and deletion.
- Ensure compatibility with ND version 4.1 or later.
- Validate idempotency for L3Out operations.
- Include assertions to verify expected outcomes after each operation.
- Clean up test L3Outs after execution to maintain a clean test environment.
@skaszlik
Copy link
Copy Markdown
Author

This contains both ACL and L3Out. Please limit to one module and its subsequent imports.

Done. The PR contains now the L3Out only

@skaszlik
Copy link
Copy Markdown
Author

To be able to create L3Out, links have to be ready, otherwise the ND will return:

{
    "results": [
        {
            "message": "No Links exist between the given fabrics for this type. Please create links with ext_l3_dci_link template between the fabrics.",
            "name": "test-l3out-routed-bgp",
            "status": "failed"
        }
    ]
}

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