#211 f5 class should respect UseEnums when faking i_type

This commit is contained in:
Oliver Gorwits
2017-06-28 17:36:23 +01:00
parent f5c5ec202a
commit f9464bcd6c
2 changed files with 4 additions and 2 deletions

View File

@@ -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;
}