Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to set overlay network in dcnm_interface module #271

Open
domainzero opened this issue Dec 13, 2023 · 3 comments
Open

Add ability to set overlay network in dcnm_interface module #271

domainzero opened this issue Dec 13, 2023 · 3 comments

Comments

@domainzero
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Add ability to set overlay network via the dcnm_interface module. Currently you can only set VLANs, etc., but cannot move interfaces between overlay networks.

New or Affected modules(s):

  • dcnm_interface

DCNM version

Using NDFC

  • V 2.2(2d)

Potential ansible task config

- name: Change overlay network on interface
  cisco.dcnm.dcnm_interface:
    fabric: test-fabric
    state: merge
    config:
      - name: Ethernet1/10
        type: eth
        switch:
          - "testswitch1"
        deploy: true
        profile:
          mode: eth
          int_vrf: ""
          overlay_network: "Test Overlay"
          cmds:
            - no shutdown

References

I searched and didn't see any other requests or way to do this.

Additional context
Add any other context or screenshots about the feature request here.

@mikewiebe
Copy link
Collaborator

@domainzero Thanks for opening this request. I need to look into how we might approach this.

@mikewiebe
Copy link
Collaborator

Hi @domainzero we did some investigation and it seems like you could accomplish what you want using the dcnm_network module. The attach: ports property allows you to associate an interface with a particular network.

For example:

- name: Merge networks
  cisco.dcnm.dcnm_network:
    fabric: vxlan-fabric
    state: merged
    config:
    - net_name: "Test_Overlay"
      vrf_name: Tenant-1
      net_id: 7005
      vlan_id: 150
      gw_ip_subnet: '192.168.30.1/24'
      attach:
      - ip_address: testswitch1
        ports: [Ethernet1/10]
      deploy: true

Will this work for your use case?

@domainzero
Copy link
Author

domainzero commented Dec 26, 2023

This will probably work for our use case. We're essentially trying to follow this whitepaper using NDFC + overlay networks instead of NX-OS directly and VLAN tags, etc.

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

No branches or pull requests

2 participants