-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[corechecks/snmp] Use getnext for reachable device status (#9189)
- Loading branch information
1 parent
94c93e4
commit 9b4bd54
Showing
4 changed files
with
101 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package gosnmplib | ||
|
||
import "github.com/gosnmp/gosnmp" | ||
|
||
// MockValidReachableGetNextPacket valid reachable packet | ||
var MockValidReachableGetNextPacket = gosnmp.SnmpPacket{ | ||
Variables: []gosnmp.SnmpPDU{ | ||
{ | ||
Name: "1.3.6.1.2.1.1.2.0", | ||
Type: gosnmp.ObjectIdentifier, | ||
Value: "1.3.6.1.4.1.3375.2.1.3.4.1", | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters