-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunicolet.py
31 lines (26 loc) · 926 Bytes
/
unicolet.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/python
from __future__ import absolute_import, division, print_function
from ansible_collections.ansible.netcommon.plugins.plugin_utils.httpapi_base import HttpApiBase
import json
__metaclass__ = type
DOCUMENTATION = """
author: unicolet
name: unicolet
short_description: fake unicolet platform support
description: just playing around with ansible network plugins
version_added: 1.0.0
"""
class HttpApi(HttpApiBase):
def __init__(self, *args, **kwargs):
super(HttpApi, self).__init__(*args, **kwargs)
self._device_info = None
def send_request(self, data, **message_kwargs):
"""Prepares and sends request(s) to device."""
pass
def get_device_info(self):
if self._device_info:
return self._device_info
device_info = {}
device_info["network_os"] = "unicolet"
self._device_info = device_info
return self._device_info