Skip to content

Commit

Permalink
add additional parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Pieprzycki Piotr committed Feb 14, 2019
1 parent 42953c8 commit 0175531
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions napalm_vyos/vyos.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,11 @@ def compare_config(self):
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()
Expand Down Expand Up @@ -374,9 +376,10 @@ def get_arp_table(self, vrf=""):
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)
if vrf:
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")
Expand Down

0 comments on commit 0175531

Please sign in to comment.