#How to set network flow control
1 messages · Page 1 of 1 (latest)
As of 9.12.1, REST does not support flowcontrol_admin.
na_ontap_rest_cli module can be used to configure net port - this module run cli command using REST api/private/cli path.
https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_rest_cli_module.html
gather network ports using rest_info module and configure flowcontrol admin using rest_cli module.
`- name: gather network ports info
na_ontap_rest_info:
gather_subset:
- network_ports_info
register: result
- debug: var=result
- name: configure port.
na_ontap_rest_cli:
command: 'network/port'
verb: 'PATCH'
params: {"node": "ontap2-01", "port": "e0a"}
body: {"flowcontrol_admin": "none"}`
https://library.netapp.com/ecmdocs/ECMLP2884821/html/index.html
topic - Using the private CLI passthrough with the ONTAP REST API
for Ansible forum - https://discordapp.com/channels/855068651522490400/1062048885847117935
Thank you.