#module to update network tuning

1 messages · Page 1 of 1 (latest)

ivory oriole
#

Hi, I have some network tuning to set up cluster. However, could not find corresponding plugin module.

  tasks:
    - name: disable rfc3465
      na_ontap_command:
        command: "{{ item }}"
        privilege: advanced
        <<: *login
      loop:
        - net tuning tcp modify -node "{{ nAname }}" -is-rfc3465-enabled false
        - net tuning tcp modify -node "{{ nBname }}" -is-rfc3465-enabled false

What can be used to replace the na_ontap_command? If use na_ontap_restit or na_ontap_rest_cli, how to replace them?

supple tangle
#

yes rest_cli should help
- name: update tunig na_ontap_rest_cli: command: 'network/tuning/tcp' verb: 'PATCH' params: node: "{{ node_name }}" body: {"is_rfc3465_enabled": True}

ivory oriole
#

Thanks! Let me try that. QQ: what's difference between na_ontap_restit vs na_ontap_rest_cli?

supple tangle
#

na_ontap_restit helps runs REST APIs

where as na_ontap_rest_cli runs REST CLI(this is similar to how one run command in cli)

ivory oriole
#

So in this case, na_ontap_restit cannot be used, as api for network/tuning/tcp does not exist, right?

supple tangle