File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/cisconso.cpython-310.pyc
o
�N�gW � @ sZ d Z ddlZdgZdZdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dd� Zdd� ZdS )z�
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>`.
� NZcisconsoc C s t jj�� rtS dS )N)FzNThe cisconso execution module failed to load: only available on proxy minions.)�salt�utils�platformZis_proxy�__virtualname__� r r �I/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/cisconso.py�__virtual__ s r c C � t d�S )z�
Return system information for grains of the NSO proxy minion
.. code-block:: bash
salt '*' cisconso.info
�info��
_proxy_cmdr r r r r
� r
c C s t |t�r
d�|�}td| |�S )a/
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'
�/�get_data��
isinstance�str�splitr )� datastore�pathr r r r % s
r c C s"