%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/modules/ |
Current File : //usr/lib/python2.7/site-packages/salt/modules/peeringdb.pyc |
� ���^c @@ s d Z d d l m Z d d l Z e j e � Z d d l Z y d d l m Z Wn! e k rt d d l m Z n Xd Z d g Z d Z d � Z d d d � Z d d � Z d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d S( s� PeeringDB Module ================ .. versionadded:: 2019.2.0 Execution module for the basic interaction with the `PeeringDB <https://www.peeringdb.com/>`_ API. While for GET operations (the functions prefixed by ``get_``) the credentials are optional, there are some specific details that are visible only to authenticated users. Moreover, the credentials are required when adding or updating information. That means, the module can equally work out of the box without any further configuration with the limitations imposed by the PeeringDB API. For complete API documentation, please refer to https://www.peeringdb.com/apidocs/. Configuration (in the opts or Pillar): .. code-block:: yaml peeringdb: username: salt password: 5@1t i ( t absolute_importN( t clean_kwargst peeringdbt *s https://www.peeringdb.com/apic C@ s t S( N( t __virtualname__( ( ( s: /usr/lib/python2.7/site-packages/salt/modules/peeringdb.pyt __virtual__/ s c C@ sV t d d d i �} | s1 | j d | � } n | sL | j d | � } n | | f S( Ns config.mergeR t defaultt usernamet password( t __salt__t get( R R t peeringdb_cfg( ( s: /usr/lib/python2.7/site-packages/salt/modules/peeringdb.pyt _get_auth3 s c C@ s8 | r"