%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/states/ |
Current File : //usr/lib/python2.7/site-packages/salt/states/junos.pyc |
� ���^c @@ sD d Z d d l m Z m Z m Z d d l Z d d l m Z e j � Z d � Z e d d d d � � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z e d d � � Z e d � � Z e d � � Z e d � � Z e d � � Z d S( uz State modules to interact with Junos devices. ============================================== :maturity: new :dependencies: junos-eznc, jxmlease .. note:: Those who wish to use junos-eznc (PyEZ) version >= 2.1.0, must use the latest salt code from github until the next release. Refer to :mod:`junos <salt.proxy.junos>` for information on connecting to junos proxy. i ( t absolute_importt print_functiont unicode_literalsN( t wrapsc @ s t � � � f d � � } | S( Nc @ s% � | | � } | d d | d <| S( Nu changesu outu result( ( t argst kwargst ret( t function( s5 /usr/lib/python2.7/site-packages/salt/states/junos.pyt wrapper s ( R ( R R ( ( R s5 /usr/lib/python2.7/site-packages/salt/states/junos.pyt resultdecorator s u xmlc K@ sr i | d 6i d 6t d 6d d 6} | d k rQ t d | | | | | � | d <n t d | | | | � | d <| S( ua Executes the given rpc. The returned data can be stored in a file by specifying the destination path with dest as an argument .. code-block:: yaml get-interface-information: junos: - rpc - dest: /home/user/rpc.log - interface_name: lo0 Parameters: Required * cmd: The rpc to be executed. (default = None) Optional * dest: Destination file where the rpc output is stored. (default = None) Note that the file will be stored on the proxy minion. To push the files to the master use the salt's following execution module: :py:func:`cp.push <salt.modules.cp.push>` * format: The format in which the rpc reply must be stored in file specified in the dest (used only when dest is specified) (default = xml) * kwargs: keyworded arguments taken by rpc call like- * timeout: Set NETCONF RPC timeout. Can be used for commands which take a while to execute. (default= 30 seconds) * filter: Only to be used with 'get-config' rpc to get specific configuration. * terse: Amount of information you want. * interface_name: Name of the interface whose information you want. u nameu changesu resultu u commentu junos.rpcN( t Truet Nonet __salt__( t namet destt formatR R R ( ( s5 /usr/lib/python2.7/site-packages/salt/states/junos.pyt rpc"