From 604de81ab8ae0516e75ff34fb2b0ff142f5c9852 Mon Sep 17 00:00:00 2001 From: Ambroise Date: Sun, 28 Jan 2018 19:35:22 +0100 Subject: [PATCH] Nexus vrf support (#246) Initial commit to add the suport of the Interfaces in VRF for Nexus devices To tune to correctly retrieve the context for the VRF On Nexus device, you need to add the following command for each VRF: snmp-server context vrf --- lib/SNMP/Info/Layer3/Nexus.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/SNMP/Info/Layer3/Nexus.pm b/lib/SNMP/Info/Layer3/Nexus.pm index 3798acca..df53e9e5 100644 --- a/lib/SNMP/Info/Layer3/Nexus.pm +++ b/lib/SNMP/Info/Layer3/Nexus.pm @@ -56,7 +56,8 @@ $VERSION = '3.39'; %MIBS = ( %SNMP::Info::Layer3::CiscoSwitch::MIBS, - 'CISCO-ENTITY-VENDORTYPE-OID-MIB' => 'cevMIBObjects', + 'CISCO-ENTITY-VENDORTYPE-OID-MIB' => 'cevMIBObjects', + 'CISCO-CONTEXT-MAPPING-MIB' => 'cContextMappingMIBObjects', ); %GLOBALS = ( @@ -64,7 +65,10 @@ $VERSION = '3.39'; 'mac' => 'dot1dBaseBridgeAddress', ); -%FUNCS = ( %SNMP::Info::Layer3::CiscoSwitch::FUNCS, ); +%FUNCS = ( + %SNMP::Info::Layer3::CiscoSwitch::FUNCS, + 'vrf_name' => 'cContextMappingVrfName', +); %MUNGE = ( %SNMP::Info::Layer3::CiscoSwitch::MUNGE, );