add additional parameters
This commit is contained in:
parent
57b6110f13
commit
42953c84ae
|
|
@ -204,7 +204,10 @@ class VyOSDriver(NetworkDriver):
|
||||||
diff = ''.join(output_compare.splitlines(True)[1:-1])
|
diff = ''.join(output_compare.splitlines(True)[1:-1])
|
||||||
return diff
|
return diff
|
||||||
|
|
||||||
def commit_config(self):
|
def commit_config(self, confirmed=None):
|
||||||
|
if confirmed is not None:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.device.commit()
|
self.device.commit()
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
@ -358,7 +361,7 @@ class VyOSDriver(NetworkDriver):
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_arp_table(self):
|
def get_arp_table(self, vrf=""):
|
||||||
# 'age' is not implemented yet
|
# 'age' is not implemented yet
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
@ -370,6 +373,11 @@ class VyOSDriver(NetworkDriver):
|
||||||
10.129.2.97 ether 00:50:56:9f:64:09 C eth0
|
10.129.2.97 ether 00:50:56:9f:64:09 C eth0
|
||||||
192.168.1.3 ether 00:50:56:86:7b:06 C eth1
|
192.168.1.3 ether 00:50:56:86:7b:06 C eth1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if vrf:
|
||||||
|
msg = "VRF support has not been added for this getter on this platform."
|
||||||
|
raise NotImplementedError(msg)
|
||||||
|
|
||||||
output = self.device.send_command("show arp")
|
output = self.device.send_command("show arp")
|
||||||
output = output.split("\n")
|
output = output.split("\n")
|
||||||
|
|
||||||
|
|
|
||||||
27
setup.py
27
setup.py
|
|
@ -1,19 +1,13 @@
|
||||||
"""setup.py file."""
|
"""setup.py file."""
|
||||||
|
|
||||||
import uuid
|
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
# for pip >= 10
|
with open("requirements.txt", "r") as fs:
|
||||||
try:
|
reqs = [r for r in fs.read().splitlines()
|
||||||
from pip._internal.req import parse_requirements
|
if (len(r) > 0 and not r.startswith("#"))]
|
||||||
except ImportError:
|
|
||||||
from pip.req import parse_requirements
|
|
||||||
|
|
||||||
__author__ = 'Piotr Pieprzycki <piotr.pieprzycki@dreamlab.pl>'
|
__author__ = 'Piotr Pieprzycki <piotr.pieprzycki@dreamlab.pl>'
|
||||||
|
|
||||||
install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
|
|
||||||
reqs = [str(ir.req) for ir in install_reqs]
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="napalm-vyos",
|
name="napalm-vyos",
|
||||||
|
|
@ -24,12 +18,17 @@ setup(
|
||||||
description="Network Automation and Programmability Abstraction Layer with Multivendor support",
|
description="Network Automation and Programmability Abstraction Layer with Multivendor support",
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Topic :: Utilities',
|
'Topic :: Utilities',
|
||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
'Programming Language :: Python :: 2',
|
'Programming Language :: Python :: 2',
|
||||||
'Programming Language :: Python :: 2.7',
|
'Programming Language :: Python :: 2.7',
|
||||||
'Operating System :: POSIX :: Linux',
|
'Programming Language :: Python :: 3',
|
||||||
'Operating System :: MacOS',
|
'Programming Language :: Python :: 3.4',
|
||||||
|
'Programming Language :: Python :: 3.5',
|
||||||
|
'Programming Language :: Python :: 3.6',
|
||||||
|
'Operating System :: POSIX :: Linux',
|
||||||
|
'Operating System :: MacOS',
|
||||||
],
|
],
|
||||||
|
url="https://github.com/napalm-automation-community/napalm-vyos",
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=reqs,
|
install_requires=reqs,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue