WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

dcnm_network: multicast_group_address not configured when set #568

@dariomi

Description

@dariomi

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

Ansible Version and collection version

ansible-core 2.5.16
dcnm collection: 3.9.1

DCNM version

  • V 4.1.1g

Affected module(s)

  • dcnm_network

Ansible Playbook

- name: Query MCAST_IP Resource
  cisco.dcnm.dcnm_resource_manager:
    state: query
    fabric: "{{ fabric }}"
    config:
      - entity_name: VRF_{{ data.vrf_name }}
  loop: "{{ fabric_names }}"
  loop_control:
    loop_var: fabric
  register: mcast_query

- name: Build network config (unicast-routing enabled)
  ansible.builtin.set_fact:
    network_config:
      - net_name: "{{ data.net_name }}"
        vlan_name: "{{ data.vlan_name | default(data.net_name, true) }}"
        vlan_id: "{{ data.vlan_id }}"
        arp_suppress: "{{ data.arp_suppress }}"
        vrf_name: "{{ data.vrf_name }}"
        multicast_group_address: "{{ mcast_query.results[0].response[0].allocatedIp }}"
        gw_ip_subnet: "{{ data.svi_gateway | default(omit, true) }}"
        attach: "{{ switch_ips }}"
        net_template: Default_Network_Universal
        net_extension_template: Default_Network_Extension_Universal
        deploy: false

- name: ND Network
  cisco.dcnm.dcnm_network:
    fabric: "{{ data.fabric_name }}"
    state: "{{ state }}"
    config: "{{ network_config }}"
  register: network_response

Debug Output

https://gist.github.com/dariomi/37d259227b25bfe3a87061def6fb5662

Expected Behavior

Network is configured with provided multicast_group_address.

Actual Behavior

Network is configured without provided multicast_group_address.

Steps to Reproduce

  1. Use dcnm_network to configure a network with a static multicast_group_address.
  2. Review output returned from dcnm_network task -> multicast_group_address not set

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions