From f9464bcd6c11190b0a659321bb0b640be9cec491 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Wed, 28 Jun 2017 17:36:23 +0100 Subject: [PATCH] #211 f5 class should respect UseEnums when faking i_type --- ChangeLog | 1 + Info/Layer3/F5.pm | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8d8d39a9..251f3aa9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ version 3.35 () * #180 support CiscoConfig on Nexus (sf.net:scratchfury) * #50 remove interface specific part from vrf interfaces on IOS (W. Vandersmissen) + * #211 f5 class should respect UseEnums when faking i_type version 3.34 (2016-11-20) diff --git a/Info/Layer3/F5.pm b/Info/Layer3/F5.pm index d18f8b67..67ff0a88 100644 --- a/Info/Layer3/F5.pm +++ b/Info/Layer3/F5.pm @@ -165,8 +165,9 @@ sub i_type { my %i_type; foreach my $if ( keys %$idx ) { - - $i_type{$if} = 'ethernetCsmacd'; + $i_type{$if} = + ((exists $f5->{sess}->{UseEnums} and $f5->{sess}->{UseEnums}) + ? 'ethernetCsmacd' : 6 ); } return \%i_type; }