??????????????
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 ddl mZddlmZddljjjjZddlmZdd lmZmZd efd „ƒYZd d „Zd„Zd„ZdS(i(tabsolute_importtdivisiontprint_functions0 --- author: - "Ujwal Komarla (@ujwalkomarla)" httpapi: exos short_description: Use EXOS REST APIs to communicate with EXOS platform description: - This plugin provides low level abstraction api's to send REST API requests to EXOS network devices and receive JSON responses. version_added: "2.8" N(tto_text(tConnectionError(tto_list(t HttpApiBase(tMapping(t NetworkConfigtdumpstHttpApicB`s¡eZd„Zd„Zd„Zd„Zddd„Zed„Z d„Z d„Z d „Z d „Z d „Zddd ddd d „Zdddd„ZRS(cO`s5tt|ƒj||Žd|_tjƒ|_dS(N(tsuperR t__init__tNonet _device_infot cookiejart CookieJart _auth_token(tselftargstkwargs((s@/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/exos.pyR /s cC`sCd}i|d6|d6}|jd|dtj|ƒddƒdS(Ns /auth/tokentusernametpasswordtpathtdatatmethodtPOST(t send_requesttjsonR (RRRt auth_patht credentials((s@/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/exos.pytlogin4scC`sdS(N((R((s@/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/exos.pytlogout9scC`stS(N(tFalse(Rtexc((s@/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/exos.pythandle_httperror<stGETc K`s°idd6}|jj||d|d|jd||\}}y7|jdkr[i}ntjt|jƒƒƒ}Wn2tk r«t dj t|jƒƒƒƒ‚nX|S(Nsapplication/jsons Content-TypeRtcookiestheadersiÌs$Response was not valid JSON, got {0}( t connectiontsendRtstatusRtloadsRtgetvaluet ValueErrorRtformat(RRRRtmessage_kwargsR&tresponset response_data((s@/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/exos.pyR?s 3   c C`su|dkrtdƒ‚nidd6}tƒ}x=t|ƒD]/}t|tƒsci|d6}nt|dƒ|d<|jddƒ}|rÛ||jƒj dƒkrÛtd|dj |jƒj dƒƒfƒ‚nt |dƒ}|j j d|d |jd |d d ƒ\}} ytjt| jƒƒƒ} Wn2tk rntd jt| jƒƒƒƒ‚nX| j ddƒrtdj| dƒƒ‚n| j ddƒsÇtdj| ƒƒ‚n| d} |r`|dkr`t| dƒ} t| dƒ} | dkr,tdj|d| ƒƒ‚n| dkrWtdj|d| ƒƒ‚n| } n|j| ƒq>W|S(Ns'commands' value is requiredsapplication/jsons Content-Typetcommandtoutputs4'output' value is %s is invalid. Valid values are %st,s/jsonrpcR%R&RRs$Response was not valid JSON, got {0}terrorsRequest Error, got {0}tresultttextR)t CLIoutputtERRORs"Command error({1}) for request {0}sBResponse for request {0} doesn't have the CLIoutput field, got {1}(R R,tlistRt isinstanceRtstrip_run_script_cli2jsontpoptget_option_valuestgettjointrequest_builderR'R(RRR*RR+RR-tgetKeyInResponsetappend( Rtcommandstcheck_rcR&t responsestcmdR2RR/R0t statusOuttcliOut((s@/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/exos.pyt run_commandsMsB   !10      cC`sÓi}d|d<|jidd6dd6ƒ}t|ddƒjƒ}tjd |ƒ}|rs|jd ƒ|d iddgd6ddddgd6dd gd 6ddgd 6S( NR6RR-tlinetstricttexacttnonet diff_matchtblockt diff_replaceR2((R((s@/usr/lib/python2.7/site-packages/ansible/plugins/httpapi/exos.pyR= s   cC`sli}ddddddg|d<|jƒ|d<|jƒ|d <|j|jƒƒd |d s   À