%PDF- %PDF-
| Direktori : /proc/thread-self/root/proc/3522530/root/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/thread-self/root/proc/3522530/root/lib/python2.7/site-packages/salt/states/netsnmp.pyc |
�
���^c @@ s( d Z d d l m Z m Z m Z d d l Z e j e � Z d d l m
Z
m Z d d l m
Z
d d l Z d Z i d d 6d d 6d
d 6d
d 6Z d
� Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d d d � Z! d S( uN
Network SNMP
============
Manage the SNMP configuration on network devices.
:codeauthor: Mircea Ulinic <mircea@cloudflare.com>
:maturity: new
:depends: napalm
:platform: unix
Dependencies
------------
- :mod:`napalm snmp management module (salt.modules.napalm_snmp) <salt.modules.napalm_snmp>`
.. versionadded: 2016.11.0
i ( t absolute_importt print_functiont unicode_literalsN( t loadst dumps( t sixu netsnmpu rou read-onlyu readonlyu rwu
read-writeu writec C@ s t j j j t t t � S( u_
NAPALM library must be installed for this module to work and run in a (proxy) minion.
( t saltt utilst napalmt virtualt __opts__t __virtualname__t __file__( ( ( s7 /usr/lib/python2.7/site-packages/salt/states/netsnmp.pyt __virtual__7 s c C@ s t t | � � S( uC
Forced the datatype to dict, in case OrderedDict is used.
( R R ( t config( ( s7 /usr/lib/python2.7/site-packages/salt/states/netsnmp.pyt _ordered_dict_to_dictB s c C@ s | j | � | S( ua
Completed the values of the expected config for the edge cases with the default values.
( t update( R t defaults( ( s7 /usr/lib/python2.7/site-packages/salt/states/netsnmp.pyt _expand_configK s
c C@ s t | t � o t | � d k S( u
Valid dictionary?
i ( t
isinstancet dictt len( t dic( ( s7 /usr/lib/python2.7/site-packages/salt/states/netsnmp.pyt _valid_dictU s c C@ s"