ONTAP Discussions

Ansible module netapp.ontap.na_ontap_export_policy_rule module

anusha90
875 Views

While running this module to add clients in rule index 1, all clients which are already present in policy rule index1 are getting replaced by new entry.

How can we append the clients in rule index.

Or if we want to create one more rule index in bottom of policy, what gather_subset to use in below module so that I can get details of rules and their indexes :

netapp.ontap.na_ontap_rest_info:

 

 

Module used to add client in export-policy:

netapp.ontap.na_ontap_export_policy_rule:
hostname: "{{ host_name }}"
vserver: "{{ vserver_name }}"
https: true
validate_certs: false
username: "{{ username }}"
password: "{{ password }}"
state: present
rule_index: 1
client_match: "{{ start_sharing }}"
name: "{{ volume_export_policy }}"

1 REPLY 1

anusha90
865 Views

I found the solution, if you not pass rule index parameter, it is actually appending the current list of rule indexes in policy,

Thanks though !!

 

Public