Merge pull request #33 from bradmwalker/mtu
Add MTU to get_interfaces() results
This commit is contained in:
commit
011db99dcc
|
|
@ -1,8 +1,9 @@
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- 2.7
|
- 2.7
|
||||||
- 3.4
|
- 3.6
|
||||||
- 3.5
|
- 3.7
|
||||||
|
- 3.8
|
||||||
install:
|
install:
|
||||||
- pip install tox-travis
|
- pip install tox-travis
|
||||||
- pip install coveralls
|
- pip install coveralls
|
||||||
|
|
|
||||||
|
|
@ -349,6 +349,7 @@ class VyOSDriver(NetworkDriver):
|
||||||
"is_enabled": bool(is_enabled),
|
"is_enabled": bool(is_enabled),
|
||||||
"description": py23_compat.text_type(description),
|
"description": py23_compat.text_type(description),
|
||||||
"last_flapped": float(-1),
|
"last_flapped": float(-1),
|
||||||
|
"mtu": -1,
|
||||||
"speed": int(speed),
|
"speed": int(speed),
|
||||||
"mac_address": py23_compat.text_type(hw_id)
|
"mac_address": py23_compat.text_type(hw_id)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
napalm==2.*
|
napalm>=2.5,<3.0
|
||||||
paramiko
|
paramiko
|
||||||
netmiko>=1.1.0
|
netmiko<3.0
|
||||||
vyattaconfparser
|
vyattaconfparser
|
||||||
|
|
|
||||||
6
setup.py
6
setup.py
|
|
@ -11,7 +11,7 @@ __author__ = 'Piotr Pieprzycki <piotr.pieprzycki@dreamlab.pl>'
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="napalm-vyos",
|
name="napalm-vyos",
|
||||||
version="0.1.6",
|
version="0.1.7",
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
author="Piotr Pieprzycki",
|
author="Piotr Pieprzycki",
|
||||||
author_email="piotr.pieprzycki@dreamlab.pl",
|
author_email="piotr.pieprzycki@dreamlab.pl",
|
||||||
|
|
@ -22,9 +22,9 @@ setup(
|
||||||
'Programming Language :: Python :: 2',
|
'Programming Language :: Python :: 2',
|
||||||
'Programming Language :: Python :: 2.7',
|
'Programming Language :: Python :: 2.7',
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Programming Language :: Python :: 3.4',
|
|
||||||
'Programming Language :: Python :: 3.5',
|
|
||||||
'Programming Language :: Python :: 3.6',
|
'Programming Language :: Python :: 3.6',
|
||||||
|
'Programming Language :: Python :: 3.7',
|
||||||
|
'Programming Language :: Python :: 3.8',
|
||||||
'Operating System :: POSIX :: Linux',
|
'Operating System :: POSIX :: Linux',
|
||||||
'Operating System :: MacOS',
|
'Operating System :: MacOS',
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"lo": {"is_enabled": true, "description": "", "last_flapped": -1.0, "is_up": true, "mac_address": "00:00:00:00:00:00", "speed": 0}, "eth1": {"is_enabled": true, "description": "", "last_flapped": -1.0, "is_up": true, "mac_address": "...", "speed": 0}, "eth0": {"is_enabled": true, "description": "", "last_flapped": -1.0, "is_up": true, "mac_address": "...", "speed": 0}}
|
{"lo": {"is_enabled": true, "description": "", "last_flapped": -1.0, "is_up": true, "mac_address": "00:00:00:00:00:00", "mtu": -1, "speed": 0}, "eth1": {"is_enabled": true, "description": "", "last_flapped": -1.0, "is_up": true, "mac_address": "...", "mtu": -1, "speed": 0}, "eth0": {"is_enabled": true, "description": "", "last_flapped": -1.0, "is_up": true, "mac_address": "...", "mtu": -1, "speed": 0}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue