#Persistent connection with API calls

1 messages · Page 1 of 1 (latest)

wispy harness
#

We have over 10000 bad export-policy rules. Currently have a playbook to iterate but taking quite some time. Is there a way to speed up the process?

```- name: Delete export policy rules
  netapp.ontap.na_ontap_export_policy_rule:
    <<: *login
    state: absent
    name: default
    vserver: "{{ vserver }}"
    rule_index: "{{ item }}"
  with_sequence: start=11 end=10590```

Configured pipelining but not sure if the API calls will follow that. Also, is ansible.netcommon.persistent connection another option to speed this up?

vestal jetty
#

I’m not sure if there is a way to speed this up.
Under the covers there a call to get protocols/nfs/export-policies/%s/rules and then delete protocols/nfs/export-policies/%s/rules in the rest api and the module won’t return until the delete job has returned successfully