�
�Udac @ s= d d l Z d d l m Z d d l m Z d d l m Z m Z d d l m Z m
Z
i Z i e � d 6e d d � d 6e d
e d g f � d 6e d
e d
g f d e
� d 6e d
e d g f d d � d 6e d d � d 6Z i Z d � Z d � Z d � Z d � Z d d � Z d � Z e
d � Z d � Z d S( i����N( t to_text( t env_fallback( t to_listt ComplexList( t
Connectiont ConnectionErrort hostt typet intt portt fallbackt ANSIBLE_NET_USERNAMEt usernamet ANSIBLE_NET_PASSWORDt no_logt passwordt ANSIBLE_NET_SSH_KEYFILEt patht ssh_keyfilet timeoutc C s t S( N( t routeros_provider_spec( ( ( sR /usr/lib/python2.7/site-packages/ansible/module_utils/network/routeros/routeros.pyt get_provider_argspec/ s c C sm t | d � r | j St | � } | j d � } | d k rR t | j � | _ n | j d d | � | j S( Nt _routeros_connectiont network_apit cliconft msgs Invalid connection type %s( t hasattrR t get_capabilitiest getR t _socket_patht fail_json( t modulet capabilitiesR ( ( sR /usr/lib/python2.7/site-packages/ansible/module_utils/network/routeros/routeros.pyt get_connection3 s c C sD t | d � r | j St | j � j � } t j | � | _ | j S( Nt _routeros_capabilities( R R"