
    Vh                    ^    d dl mZ d dlZd dlmc mc mZ d dlm	Z	 d dl
mZ  G d de      Zy)    )annotationsN)get_file_content)NetworkCollectorc                  &    e Zd ZdZ e       ZddZy)NvmeInitiatorNetworkCollectornvmeNc                .   i }d|d<   t         j                  j                  d      rnt        dd      j	                         D ]Q  }|j                  d      s$|j                  d      s|j                         dk(  r9|j                  d      sK||d<    |S  |S )a  
        Currently NVMe is only supported in some Linux distributions.
        If NVMe is configured on the host then a file will have been created
        during the NVMe driver installation. This file holds the unique NQN
        of the host.

        Example of contents of /etc/nvme/hostnqn:

        # cat /etc/nvme/hostnqn
        nqn.2014-08.org.nvmexpress:fc_lif:uuid:2cd61a74-17f9-4c22-b350-3020020c458d

         hostnqnlinuxz/etc/nvme/hostnqn#;znqn.)sysplatform
startswithr   
splitlinesstrip)selfmodulecollected_facts
nvme_factslines        W/home/dcms/DCMS/lib/python3.12/site-packages/ansible/module_utils/facts/network/nvme.pycollectz%NvmeInitiatorNetworkCollector.collect    s     
 "
9<<""7+()<bALLN ??3'4??3+?4::<SUCU??6*,0Jy)     )NN)__name__
__module____qualname__nameset	_fact_idsr    r   r   r   r      s    DIr   r   )
__future__r   r   "ansible.module_utils.compat.typingmodule_utilscompattypingt ansible.module_utils.facts.utilsr   'ansible.module_utils.facts.network.baser   r   r"   r   r   <module>r+      s&   $ # 
 . . = D$4 r   