%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/modules/ |
Current File : //usr/lib/python2.7/site-packages/salt/modules/nxos.pyc |
� ���^c @@ s\ d Z d d l m Z m Z m Z d d l Z d g Z d Z d � Z d � Z d � Z d S( u� Execution module for Cisco NX OS Switches Proxy minions .. versionadded:: 2016.11.0 For documentation on setting up the nxos proxy minion look in the documentation for :mod:`salt.proxy.nxos <salt.proxy.nxos>`. i ( t absolute_importt print_functiont unicode_literalsNu nxosc C@ s t j j j � r t St d f S( NuJ The nxos execution module failed to load: only available on proxy minions.( t saltt utilst platformt is_proxyt __virtualname__t False( ( ( s5 /usr/lib/python2.7/site-packages/salt/modules/nxos.pyt __virtual__ s c C@ s t d � S( u� Return system information for grains of the NX OS proxy minion .. code-block:: bash salt '*' nxos.system_info u system_info( t cmd( ( ( s5 /usr/lib/python2.7/site-packages/salt/modules/nxos.pyt system_info s c O@ sz t d d } d j | | g � } | t k r3 t Sx3 t | � D]% } | j d � r@ | j | � q@ q@ Wt | | | � S( u� run commands from __proxy__ :mod:`salt.proxy.nxos<salt.proxy.nxos>` command function from `salt.proxy.nxos` to run args positional args to pass to `command` function kwargs key word arguments to pass to `command` function .. code-block:: bash salt '*' nxos.cmd sendline 'show ver' salt '*' nxos.cmd show_run salt '*' nxos.cmd check_password username=admin password='$5$lkjsdfoi$blahblahblah' encrypted=True u proxyu proxytypeu .u __pub_( t __opts__t joint __proxy__R t listt startswitht pop( t commandt argst kwargst proxy_prefixt proxy_cmdt k( ( s5 /usr/lib/python2.7/site-packages/salt/modules/nxos.pyR &