Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/module_utils/network/netvisor/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/module_utils/network/netvisor/pn_nvos.pyo

�
�Udac@`s]ddlmZmZmZeZddlmZddddd�Z	d�Z
d�ZdS(i(tabsolute_importtdivisiontprint_function(trun_commandscC`sWd}|r)|r)|d||f7}n|r@|d|7}n|rS|d7}n|S(s�
    Method to generate the cli portion to launch the Netvisor cli.
    :param module: The Ansible module to fetch username and password.
    :return: The cli string for further processing.
    ts--user "%s":"%s" s switch s switch-local ((tmoduletswitchtusernametpasswordtswitch_localtcli((sQ/usr/lib/python2.7/site-packages/ansible/module_utils/network/netvisor/pn_nvos.pytpn_clis
cC`s0|tkrd|S|tkr(d|SdSdS(Ns %s R(tTruetFalse(targt
trueStringtfalseString((sQ/usr/lib/python2.7/site-packages/ansible/module_utils/network/netvisor/pn_nvos.pytbooleanArgss
c	C`s�|jd}||}t||�\}}}td|dd|dt�}|dkr}|jd|dd|dt�n|j|�dS(	sE
    This method executes the cli command on the target node(s) and returns the
    output. The module then exits based on the output.
    :param cli: the complete cli string to be executed on the target node(s).
    :param state_map: Provides state of the command.
    :param module: The Ansible module to fetch command
    tstatetcommandtmsgs%s operation completedtchangedis%s operation failedN(tparamsRtdictRt	exit_jsonR
(	RR
t	state_mapRRtresulttoutterrtresults((sQ/usr/lib/python2.7/site-packages/ansible/module_utils/network/netvisor/pn_nvos.pytrun_cli(s


		

N(t
__future__RRRttypet
__metaclass__t.ansible.module_utils.network.netvisor.netvisorRtNoneRRR(((sQ/usr/lib/python2.7/site-packages/ansible/module_utils/network/netvisor/pn_nvos.pyt<module>s
		

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]