Skip to content

Commit

Permalink
add dns info
Browse files Browse the repository at this point in the history
  • Loading branch information
carchi8py committed Jul 16, 2019
1 parent dd30d86 commit 91402b0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/ansible/modules/storage/netapp/na_ontap_gather_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
description:
- When supplied, this argument will restrict the facts collected
to a given subset. Possible values for this argument include
"aggregate_info", "cluster_node_info", "igroup_info", "lun_info", "net_ifgrp_info",
"aggregate_info", "cluster_node_info", "igroup_info", "lun_info", "net_dns_info",
"net_ifgrp_info",
"net_interface_info", "net_port_info", "nvme_info", "nvme_interface_info",
"nvme_namespace_info", "nvme_subsystem_info", "ontap_version",
"qos_adaptive_policy_info", "qos_policy_info", "security_key_manager_key_info",
Expand Down Expand Up @@ -92,6 +93,7 @@
"ontap_facts": {
"aggregate_info": {...},
"cluster_node_info": {...},
"net_dns_info": {...},
"net_ifgrp_info": {...},
"net_interface_info": {...},
"net_port_info": {...},
Expand Down Expand Up @@ -142,6 +144,16 @@ def __init__(self, module):
# min_version identifies the ontapi version which supports this ZAPI
# use 0 if it is supported since 9.1
self.fact_subsets = {
'net_dns_info': {
'method': self.get_generic_get_iter,
'kwargs': {
'call': 'net-dns-get-iter',
'attribute': 'net-dns-info',
'field': 'vserver-name',
'query': {'max-records': '1024'},
},
'min_version': '0',
},
'net_interface_info': {
'method': self.get_generic_get_iter,
'kwargs': {
Expand Down

0 comments on commit 91402b0

Please sign in to comment.