From 1e776c34a2d0fb54acfe426db030e28373818b2d Mon Sep 17 00:00:00 2001 From: Chris Archibald Date: Mon, 4 Mar 2019 08:57:05 -0800 Subject: [PATCH] Add NVME to gatherfacts (#53007) * Revert "changes to clusteR" This reverts commit 33ee1b71e4bc8435fb315762a871f8c4cb6c5f80. * Revert "Revert "changes to clusteR"" This reverts commit f1104a37b42886aebb4d2b2ab27c91c96d97858a. * Updtes --- .../storage/netapp/na_ontap_gather_facts.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/lib/ansible/modules/storage/netapp/na_ontap_gather_facts.py b/lib/ansible/modules/storage/netapp/na_ontap_gather_facts.py index b792e38648e..7a0b850324a 100644 --- a/lib/ansible/modules/storage/netapp/na_ontap_gather_facts.py +++ b/lib/ansible/modules/storage/netapp/na_ontap_gather_facts.py @@ -188,6 +188,30 @@ class NetAppONTAPGatherFacts(object): field='interface-name', query={'max-records': '1024'} ) + self.netapp_info['nvme_info'] = self.get_generic_get_iter( + 'nvme-get-iter', + attribute='nvme-target-service-info', + field='vserver', + query={'max-records': '1024'} + ) + self.netapp_info['nvme_interface_info'] = self.get_generic_get_iter( + 'nvme-interface-get-iter', + attribute='nvme-interface-info', + field='vserver', + query={'max-records': '1024'} + ) + self.netapp_info['nvme_subsystem_info'] = self.get_generic_get_iter( + 'nvme-subsystem-get-iter', + attribute='nvme-subsystem-info', + field='subsystem', + query={'max-records': '1024'} + ) + self.netapp_info['nvme_namespace_info'] = self.get_generic_get_iter( + 'nvme-namespace-get-iter', + attribute='nvme-namespace-info', + field='path', + query={'max-records': '1024'} + ) self.netapp_info['net_port_info'] = self.get_generic_get_iter( 'net-port-get-iter', attribute='net-port-info',