add additional parameters

This commit is contained in:
Pieprzycki Piotr 2019-02-14 23:55:18 +01:00
parent 42953c84ae
commit 0175531bbb
1 changed files with 9 additions and 6 deletions

View File

@ -204,9 +204,11 @@ class VyOSDriver(NetworkDriver):
diff = ''.join(output_compare.splitlines(True)[1:-1])
return diff
def commit_config(self, confirmed=None):
if confirmed is not None:
raise NotImplementedError
def commit_config(self, message=""):
if message:
raise NotImplementedError(
"Commit message not implemented for this platform"
)
try:
self.device.commit()
@ -375,8 +377,9 @@ class VyOSDriver(NetworkDriver):
"""
if vrf:
msg = "VRF support has not been added for this getter on this platform."
raise NotImplementedError(msg)
raise NotImplementedError(
"VRF support has not been added for this getter on this platform."
)
output = self.device.send_command("show arp")
output = output.split("\n")