diff options
| author | Roberto Berto <roberto.berto@gmail.com> | 2023-11-21 15:04:14 -0300 |
|---|---|---|
| committer | Roberto Berto <roberto.berto@gmail.com> | 2023-11-21 15:04:14 -0300 |
| commit | ceae13c042a28dbafdb1fca59fdf6d5ac5628cb9 (patch) | |
| tree | e9502c3b5d829e1d5322803f609d2a3e9a9c443a /test_show.py | |
| parent | ae98f19358bb47285c22b901c8153eeed79210e3 (diff) | |
| download | pyvyos-ceae13c042a28dbafdb1fca59fdf6d5ac5628cb9.tar.gz pyvyos-ceae13c042a28dbafdb1fca59fdf6d5ac5628cb9.zip | |
pypi example and README.md
Diffstat (limited to 'test_show.py')
| -rw-r--r-- | test_show.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/test_show.py b/test_show.py deleted file mode 100644 index a58b656..0000000 --- a/test_show.py +++ /dev/null @@ -1,34 +0,0 @@ -#import warnings -#warnings.filterwarnings("ignore", category=RuntimeWarning) - -import sys -import os - -# Adicione o diretório raiz do projeto ao sys.path para que possa importar vyapi -sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__)))) - - -import unittest -from vyapi.device import VyDevice -from vyapi.device import ApiResponse -from dotenv import load_dotenv -import pprint - -load_dotenv() - -hostname = os.getenv('VYDEVICE_HOSTNAME') -key = os.getenv('VYDEVICE_KEY') -port = os.getenv('VYDEVICE_PORT') -protocol = os.getenv('VYDEVICE_PROTOCOL') -verify = os.getenv('VYDEVICE_VERIFY_SSL') -if verify == "False": - verify = False - -else: - verify = True - -if __name__ == '__main__': - device = VyDevice(hostname=hostname, key=key, port=port, protocol=protocol, verify=verify) - response = device.retrieve_show_config(['system']) - pprint.pprint(response) - |
