From fecd73faa0c27c514e4c5845a82cc72e2a57f790 Mon Sep 17 00:00:00 2001 From: Julien Guirlinger Date: Thu, 28 Feb 2019 18:29:44 +0100 Subject: [PATCH] IOS: add support for VRF for get_arp_table func Simply takes into account the vrf function arg and exec the expected ios command. --- napalm/ios/ios.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/napalm/ios/ios.py b/napalm/ios/ios.py index 895453beb..32008fec5 100644 --- a/napalm/ios/ios.py +++ b/napalm/ios/ios.py @@ -1918,12 +1918,12 @@ def get_arp_table(self, vrf=""): ] """ if vrf: - msg = "VRF support has not been added for this getter on this platform." - raise NotImplementedError(msg) + command = 'show arp vrf {} | exclude Incomplete'.format(vrf) + else: + command = 'show arp | exclude Incomplete' arp_table = [] - command = "show arp | exclude Incomplete" output = self._send_command(command) # Skip the first line which is a header