Using the na_ontap_broadcast_domain module, is it possible to rename a broadcast domain without having to specify all the ports that are members of it? I am trying to run the play below, and it is giving me the error message that follows.
Or, is there an easy way to populate the ports parameter with the member ports? If I loop through the output of a na_ontap_rest_info, it only gives me one port at a time, instead of all the ports that are in the broadcast domain.
- name: Rename Broadcast Domain
na_ontap_broadcast_domain:
hostname: "{{ inventory_hostname_short }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
validate_certs: false
https: true
state: present
mtu: 1500 | int
ipspace: Default
from_name: Default
name: "{{ cluster_mgmt_port }}_bd"
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: netapp_lib.api.zapi.zapi.NaApiError: NetApp API failed. Reason - 13006:Missing input: ports fatal: [cluster01]: FAILED! => {"changed": false, "msg": "Error splitting broadcast domain e0M_bd: NetApp API failed. Reason - 13006:Missing input: ports"}