#
# old_revision [305b41a31ebda0681f1ab72b3569fcafeb2b59b1]
#
# patch "pf/lib/pf/SNMP/Cisco.pm"
#  from [03d541fe1f4e636a44609dc379f8909e733c4987]
#    to [90965eb0f8adc215123c9244f8e7c3b2895d07f7]
#
============================================================
--- pf/lib/pf/SNMP/Cisco.pm	03d541fe1f4e636a44609dc379f8909e733c4987
+++ pf/lib/pf/SNMP/Cisco.pm	90965eb0f8adc215123c9244f8e7c3b2895d07f7
@@ -202,6 +202,8 @@ sub parseTrap {
                                 ["$OID_dot1dBasePortIfIndex.$dot1dBasePort"],
                             -contextname => "vlan_$currentVlan"
                         );
+                        # FIXME: calling "private" method to unset context. See #1284 or upstream rt.cpan.org:72075.
+                        $this->{_sessionRead}->{_context_name} = undef;
                     }
                 } else {
                     my ( $sessionReadVlan, $sessionReadVlanError )
@@ -675,6 +677,8 @@ sub getMacBridgePortHash {
             -baseoid     => $OID_dot1dTpFdbPort,
             -contextname => "vlan_$vlan"
         );
+        # FIXME: calling "private" method to unset context. See #1284 or upstream rt.cpan.org:72075.
+        $this->{_sessionRead}->{_context_name} = undef;
     } else {
         my ( $sessionReadVlan, $sessionReadVlanError ) = Net::SNMP->session(
             -hostname  => $this->{_ip},
@@ -767,6 +771,8 @@ sub getIfIndexForThisMac {
                     return $result->{$oid};
                 }
             }
+            # FIXME: calling "private" method to unset context. See #1284 or upstream rt.cpan.org:72075.
+            $this->{_sessionRead}->{_context_name} = undef;
 
         } else {
 
@@ -846,6 +852,8 @@ sub isMacInAddressTableAtIfIndex {
                 return 1;
             }
         }
+        # FIXME: calling "private" method to unset context. See #1284 or upstream rt.cpan.org:72075.
+        $this->{_sessionRead}->{_context_name} = undef;
 
     } else {
 
@@ -1239,6 +1247,8 @@ sub getAllMacs {
                     -baseoid     => $OID_dot1dTpFdbPort,
                     -contextname => "vlan_$vlan"
                 );
+                # FIXME: calling "private" method to unset context. See #1284 or upstream rt.cpan.org:72075.
+                $this->{_sessionRead}->{_context_name} = undef;
             } else {
                 my ( $sessionReadVlan, $sessionReadVlanError )
                     = Net::SNMP->session(
