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

View File

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

View File

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

View File

@ -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',
], ],

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] [tox]
envlist = py27,py35 envlist = py27,py36,py37,py38
[testenv] [testenv]
deps = deps =