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
#!/usr/bin/env ruby | |
# use snmptranslate to lookup OID if there's no comment after an existing numeric OID | |
def translate_oid(oid) | |
@cache ||= {} | |
@cache[oid] ||= `snmptranslate -Os -mALL #{oid}` | |
end | |
file = 'generator.yml.j2' |
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
juniper: | |
auth: | |
community: {{ community_strings.neteng }} | |
lookups: | |
- old_index: ifIndex | |
new_index: ifDescr | |
- old_index: dot3StatsIndex | |
new_index: ifDescr | |
walk: [ |