Merge pull request #33 from bradmwalker/mtu

Add MTU to get_interfaces() results
This commit is contained in:
Piotr Pieprzycki 2020-05-17 23:35:08 +02:00 committed by GitHub
commit 011db99dcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 9 deletions

View File

@ -1,8 +1,9 @@
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
- 3.7
- 3.8
install:
- pip install tox-travis
- pip install coveralls

View File

@ -349,6 +349,7 @@ class VyOSDriver(NetworkDriver):
"is_enabled": bool(is_enabled),
"description": py23_compat.text_type(description),
"last_flapped": float(-1),
"mtu": -1,
"speed": int(speed),
"mac_address": py23_compat.text_type(hw_id)
}

View File

@ -1,4 +1,4 @@
napalm==2.*
napalm>=2.5,<3.0
paramiko
netmiko>=1.1.0
netmiko<3.0
vyattaconfparser

View File

@ -11,7 +11,7 @@ __author__ = 'Piotr Pieprzycki <piotr.pieprzycki@dreamlab.pl>'
setup(
name="napalm-vyos",
version="0.1.6",
version="0.1.7",
packages=find_packages(),
author="Piotr Pieprzycki",
author_email="piotr.pieprzycki@dreamlab.pl",
@ -22,9 +22,9 @@ setup(
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS',
],

View File

@ -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}}

View File

@ -1,5 +1,5 @@
[tox]
envlist = py27,py35
envlist = py27,py36,py37,py38
[testenv]
deps =