Commit e64abb19 authored by Brian Kroth's avatar Brian Kroth

nexus devices don't support setting the vlan trunking encapsulation mode via snmp

parent 81334b6d
......@@ -1968,11 +1968,13 @@ sub enablePortTrunking2($$$$) {
#
# Set the type of the trunk - we only do dot1q for now
#
my $trunkType = ["vlanTrunkPortEncapsulationType",$ifIndex,"dot1Q","INTEGER"];
$rv = snmpitSetWarn($self->{SESS},$trunkType);
if (!$rv) {
warn "ERROR: Unable to set encapsulation type\n";
return 0;
if ($self->{OSTYPE} ne 'NX-OS') { # this oid is notWritable on Nexus devices
my $trunkType = ["vlanTrunkPortEncapsulationType",$ifIndex,"dot1Q","INTEGER"];
$rv = snmpitSetWarn($self->{SESS},$trunkType);
if (!$rv) {
warn "ERROR: Unable to set encapsulation type\n";
return 0;
}
}
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment