blob: a82e98e00f0e0937d50d31da04a1614fb5cd2c67 (
plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
.. VyMGMT documentation master file, created by
sphinx-quickstart on Tue Sep 6 14:12:19 2016.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to VyMGMT's documentation!
==================================
Contents:
.. toctree::
:maxdepth: 2
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
Quick introduction
==================
A python library for executing commands on VyOS systems.
Generic methods should also work with any of the Vyatta descendants (EdgeOS, Brocade vRouter).
The library is compatible with both python2 and python3.
It is released under the MIT license.
Usage example::
import vymgmt
vyos = vymgmt.Router('192.0.2.1', 'vyos', password='vyos', port=22)
vyos.login()
vyos.configure()
vyos.set("protocols static route 203.0.113.0/25 next-hop 192.0.2.20")
vyos.delete("system options reboot-on-panic")
vyos.commit()
vyos.save()
vyos.exit()
vyos.logout()
|