Skip to content

Commit

Permalink
Update generator default MIBOPTS
Browse files Browse the repository at this point in the history
Enable `u`, which is "allow the use of underlines in MIB symbols".
This enables better compatibility with some MIBs.

Signed-off-by: SuperQ <[email protected]>
  • Loading branch information
SuperQ committed Aug 7, 2024
1 parent 1b1c340 commit 78c3ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func generateConfig(nodes *Node, nameToNode map[string]*Node, logger log.Logger)

var (
failOnParseErrors = kingpin.Flag("fail-on-parse-errors", "Exit with a non-zero status if there are MIB parsing errors").Default("true").Bool()
snmpMIBOpts = kingpin.Flag("snmp.mibopts", "Toggle various defaults controlling MIB parsing, see snmpwalk --help").Default("e").String()
snmpMIBOpts = kingpin.Flag("snmp.mibopts", "Toggle various defaults controlling MIB parsing, see snmpwalk --help").Default("eu").String()
generateCommand = kingpin.Command("generate", "Generate snmp.yml from generator.yml")
userMibsDir = kingpin.Flag("mibs-dir", "Paths to mibs directory").Default("").Short('m').Strings()
generatorYmlPath = generateCommand.Flag("generator-path", "Path to the input generator.yml file").Default("generator.yml").Short('g').String()
Expand Down

0 comments on commit 78c3ee9

Please sign in to comment.