#How to set network flow control

1 messages · Page 1 of 1 (latest)

wise trail
#

Hello, I am just writing an new routine to gather all physical ports and set flow_control. But i discoverd two problems:

  1. na_ontap_rest_info seems not showing network ports at all
  2. na_ontap_net_port does not allow setting flow_control using rest.

Do you have any recommendation for me how to archive this future prove?

shut mica
#

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"}`
wise trail
#

Thank you.