�
�Udac @` s� d d l m Z m Z m Z e Z d Z d d l Z d d l m Z d d l
m Z d d l m
Z
d d l m Z d d l m Z d Z d
e f d � � YZ d � Z d S(
i ( t absolute_importt divisiont print_functions�
---
author: Ansible Networking Team
httpapi: restconf
short_description: HttpApi Plugin for devices supporting Restconf API
description:
- This HttpApi plugin provides methods to connect to Restconf API
endpoints.
version_added: "2.8"
options:
root_path:
type: str
description:
- Specifies the location of the Restconf root.
default: '/restconf'
vars:
- name: ansible_httpapi_restconf_root
N( t to_text( t to_list( t ConnectionError( t HTTPError( t HttpApiBases application/yang-data+jsont HttpApic B` s e Z d � Z RS( c
K` s� | r t j | � } n d j | j d � j d � | j d d � j d � g � } i | j d � pi t d 6| j d � p t d 6} | j j | | d | d
| j d
� �\ } } t
| | � S( Nt /t root_patht patht t content_types Content-Typet acceptt Acceptt headerst method( t jsont dumpst joint
get_optiont rstript gett lstript CONTENT_TYPEt
connectiont sendt handle_response( t selft datat message_kwargsR R t responset
response_data( ( sD /usr/lib/python2.7/site-packages/ansible/plugins/httpapi/restconf.pyt send_request7 s <0( t __name__t
__module__R"