On Mon, Feb 04, 2008 at 05:32:17PM +0300, Ilya Etingof wrote:
Looking at the "smidump -f python" output, I'm not sure how to distinguish IMPLIED INDEX object from just INDEX one. That is, the following SMI code (from SNMP-COMMUNITY-MIB):
snmpCommunityEntry OBJECT-TYPE SYNTAX SnmpCommunityEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Information about a particular community string." INDEX { IMPLIED snmpCommunityIndex } ::= { snmpCommunityTable 1 }
gets converted into
"snmpCommunityEntry" : { "nodetype" : "row", "moduleName" : "SNMP-COMMUNITY-MIB", "oid" : "1.3.6.1.6.3.18.1.1.1", "create" : "true", "status" : "current", "linkage" : [ "snmpCommunityIndex", ], "description" : """Information about a particular community string.""", }, # row
where I see no clear indication of the IMPLIED status of this INDEX. Or is it the "create" flag?
We could generate
"implied" : "true",
where it is needed, similar to what you get with
$ smiquery node SNMP-COMMUNITY-MIB::snmpCommunityEntry
/js