%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/modules/cisconso.pyc

�
���^c@@s�dZddlmZmZmZddlZddlmZdgZ	dZ
d�Zd�Zd�Z
d	�Zd
�Zd�Zd�Zd
�ZdS(u�
Execution module for Cisco Network Services Orchestrator Proxy minions

.. versionadded: 2016.11.0

For documentation on setting up the cisconso proxy minion look in the documentation
for :mod:`salt.proxy.cisconso<salt.proxy.cisconso>`.
i(tabsolute_importtprint_functiontunicode_literalsN(tsixucisconsocC@s tjjj�rtStdfS(NuNThe cisconso execution module failed to load: only available on proxy minions.(tsalttutilstplatformtis_proxyt__virtualname__tFalse(((s9/usr/lib/python2.7/site-packages/salt/modules/cisconso.pyt__virtual__scC@s
td�S(u�
    Return system information for grains of the NSO proxy minion

    .. code-block:: bash

        salt '*' cisconso.info
    uinfo(t
_proxy_cmd(((s9/usr/lib/python2.7/site-packages/salt/modules/cisconso.pytinfoscC@s4t|tj�r$dj|�}ntd||�S(u/
    Get the configuration of the device tree at the given path

    :param datastore: The datastore, e.g. running, operational.
        One of the NETCONF store IETF types
    :type  datastore: :class:`DatastoreType` (``str`` enum).

    :param path: The device path to set the value at,
        a list of element names in order, / separated
    :type  path: ``list``, ``str`` OR ``tuple``

    :return: The network configuration at that tree
    :rtype: ``dict``

    .. code-block:: bash

        salt cisco-nso cisconso.get_data running 'devices/ex0'
    u/uget_data(t
isinstanceRtstring_typestsplitR(t	datastoretpath((s9/usr/lib/python2.7/site-packages/salt/modules/cisconso.pytget_data%scC@s7t|tj�r$dj|�}ntd|||�S(u|
    Set a data entry in a datastore

    :param datastore: The datastore, e.g. running, operational.
        One of the NETCONF store IETF types
    :type  datastore: :class:`DatastoreType` (``str`` enum).

    :param path: The device path to set the value at,
        a list of element names in order, / separated
    :type  path: ``list``, ``str`` OR ``tuple``

    :param data: The new value at the given path
    :type  data: ``dict``

    :rtype: ``bool``
    :return: ``True`` if successful, otherwise error.

    .. code-block:: bash

        salt cisco-nso cisconso.set_data_value running 'devices/ex0/routes' 10.0.0.20/24
    u/uset_data_value(R
RRRR(RRtdata((s9/usr/lib/python2.7/site-packages/salt/modules/cisconso.pytset_data_value=scC@s
td�S(u
    Get a list of stored configuration rollbacks

    .. code-block:: bash

        salt cisco-nso cisconso.get_rollbacks
    u
get_rollbacks(R(((s9/usr/lib/python2.7/site-packages/salt/modules/cisconso.pyt
get_rollbacksXscC@s
td|�S(u
    Get the backup of stored a configuration rollback

    :param name: Typically an ID of the backup
    :type  name: ``str``

    :rtype: ``str``
    :return: the contents of the rollback snapshot

    .. code-block:: bash

        salt cisco-nso cisconso.get_rollback 52
    uget_rollback(R(tname((s9/usr/lib/python2.7/site-packages/salt/modules/cisconso.pytget_rollbackcscC@std||�S(ud
    Apply a system rollback

    :param datastore: The datastore, e.g. running, operational.
        One of the NETCONF store IETF types
    :type  datastore: :class:`DatastoreType` (``str`` enum).

    :param name: an ID of the rollback to restore
    :type  name: ``str``

    .. code-block:: bash

        salt cisco-nso cisconso.apply_rollback 52
    uapply_rollback(R(RR((s9/usr/lib/python2.7/site-packages/salt/modules/cisconso.pytapply_rollbacktscO@sttdd}dj||g�}|tkr3tSx-|D]%}|jd�r:|j|�q:q:Wt|||�S(u
    run commands from __proxy__
    :mod:`salt.proxy.cisconso<salt.proxy.cisconso>`

    command
        function from `salt.proxy.cisconso` to run

    args
        positional args to pass to `command` function

    kwargs
        key word arguments to pass to `command` function
    uproxyu	proxytypeu.u__pub_(t__opts__tjoint	__proxy__R	t
startswithtpop(tcommandtargstkwargstproxy_prefixt	proxy_cmdtk((s9/usr/lib/python2.7/site-packages/salt/modules/cisconso.pyR�s
(t__doc__t
__future__RRRtsalt.utils.platformRtsalt.extRt__proxyenabled__RR
RRRRRRR(((s9/usr/lib/python2.7/site-packages/salt/modules/cisconso.pyt<module>	s								

Zerion Mini Shell 1.0