ansible-dcnm
ansible-dcnm copied to clipboard
Add ability to set overlay network in dcnm_interface module
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.
@domainzero Thanks for opening this request. I need to look into how we might approach this.
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?
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.