??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
σ ΰUdac@`sάddlmZmZmZeZdZddlZddlZddl m Z ddl m Z m Z ddlmZddlmZddlmZmZdd lmZdd lmZmZd efd „ƒYZdS( i(tabsolute_importtdivisiontprint_functions& --- author: Ansible Networking Team cliconf: nxos short_description: Use nxos cliconf to run command on Cisco NX-OS platform description: - This nxos plugin provides low level abstraction apis for sending and receiving CLI commands from Cicso NX-OS network devices. version_added: "2.4" N(tAnsibleConnectionFailure(tto_bytestto_text(tMapping(tConnectionError(t NetworkConfigtdumps(tto_list(t CliconfBaset enable_modetCliconfcB`sΕeZd„Zd„Zd„Zd„Zddddddd„Zdddd„Zde ddd „Z dde de e d „Z de d „Z d „Zd „Zd„Zd„Zd„ZRS(cO`s/i|_i|_tt|ƒj||ŽdS(N(t_module_contextt _device_infotsuperR t__init__(tselftargstkwargs((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/nxos.pyR/s  cC`s!|jj|ƒr|j|SdS(N(RtgettNone(Rt module_key((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/nxos.pytread_module_context4s cC`s||j|i}|jƒ}|j|||||ƒg}g}|r…|jƒ} d| jddƒkrstddƒ‚ndj|ƒ}n|r|jdƒxot|ƒD]a} t| t ƒsΚi| d6} n| d} | d kr₯|j |j| ƒ|j | ƒq₯q₯W|jd ƒn t d ƒ‚||d <||d <|S( Nt9KR!R?tmessageu-replace is supported only on Nexus 9K devicessconfig replace {0}sconfigure terminaltcommandtendscheck mode is not supportedtrequesttresponse( RAtcheck_edit_config_capabilityR1RRRSRWR t isinstanceRtappendRC( RRHtcommitR=tcommenttrespt operationstresultstrequestsR'R2R\((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/nxos.pyt edit_config’s0        c C`sI|r|j||ƒ}n|jd|d|d|d|d|d|ƒS(NR`tprompttanswertsendonlytnewlinet check_all(t_get_command_with_outputRW(RR`RnRoRptoutputRqRr((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/nxos.pyRΓscC`sr|dkrtdƒ‚ntƒ}xGt|ƒD]9}t|tƒsVi|d6}n|jddƒ}|r‹|j|d|ƒ|dtcheck_rct responsesR\Rttoutte((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/nxos.pyt run_commandsΘs4     # cC`sQi td6td6td6td6td6td6td6td6td 6td 6td 6S( Ntsupports_diff_replacetsupports_committsupports_rollbacktsupports_defaultstsupports_onbox_difftsupports_commit_commenttsupports_multiline_delimitertsupports_diff_matchtsupports_diff_ignore_linesR3tsupports_replace(RztFalse(R((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/nxos.pyRAκscC`sAiddgd6ddddgd6dd d gd 6ddgd 6S( NRRR}RSR2tstricttexactR7R4tblockR8R5Rt((R((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/nxos.pyRBωs  cC`s[tt|ƒjƒ}|dcddg7<|jƒ|d<|j|jƒƒtj|ƒS(NtrpcRQRƒRL(RR tget_capabilitiesRAtupdateRBR}R (Rtresult((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/nxos.pyR“s cC`s³|jjr―|jjƒ}|d krCtdd|jjƒ‚ntjdƒ}xZ|jt |ddƒj ƒƒr«|jj ddƒ|jj dƒ|jjƒ}qUWnd S( sW Make sure we are in the operational cli context :return: None R_uGcli prompt is not identified from the last received response window: %ss^.*\((?!maint-mode).*\)#$Rvtsurrogate_then_replacetvvvvs%wrong context, sending exit to devicetexitN( t _connectiont connectedt get_promptRRt_last_recv_windowR"tcompileR<RR&t queue_messageRW(RRt config_prompt((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/nxos.pytset_cli_prompt_context s   $cC`s|jƒ}||dkrBtd|dj|dƒfƒ‚n|dkrΓ|jdƒ rΓ|jƒ}|jddƒ}|jddƒ}|jd ƒrΆd |krΆd |}qύd |}n:|d krχ|jdƒrχ|jddƒd}n|}|S(NRts1'output' value %s is invalid. Valid values are %sRTR}s| jsonRR?R!sDS-tMDSs%s | json natives %s | jsonRRt|ii(RBRCRDtendswithR1Rt startswithtrsplit(RR`RtRZR'tmodeltplatformR\((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/nxos.pyRss &   N(t__name__t __module__RRRR1RRQR]RzRmRŽRRƒRARBR“R Rs(((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/nxos.pyR -s    3!"    (t __future__RRRttypet __metaclass__t DOCUMENTATIONR}R"tansible.errorsRtansible.module_utils._textRRt/ansible.module_utils.common._collections_compatRtansible.module_utils.connectionRt*ansible.module_utils.network.common.configRR t)ansible.module_utils.network.common.utilsR tansible.plugins.cliconfR R R (((s@/usr/lib/python2.7/site-packages/ansible/plugins/cliconf/nxos.pyts