Hello,
With smidump's Python driver, it becomes impossible to easily distinguish OBJECT-GROUP from NOTIFICATION-GROUP item in the output.
For instance:
ifCounterDiscontinuityGroup OBJECT-GROUP OBJECTS { ifCounterDiscontinuityTime } STATUS current DESCRIPTION "A collection of objects providing information specific to interface counter discontinuities." ::= { ifGroups 13 }
linkUpDownNotificationsGroup NOTIFICATION-GROUP NOTIFICATIONS { linkUp, linkDown } STATUS current DESCRIPTION "The notifications which indicate specific changes in the value of ifOperStatus." ::= { ifGroups 14 }
translates into:
"ifCounterDiscontinuityGroup" : { "nodetype" : "group", "moduleName" : "IF-MIB", "oid" : "1.3.6.1.2.1.31.2.1.13", "status" : "current", "members" : { "ifCounterDiscontinuityTime" : { "nodetype" : "member", "module" : "IF-MIB" }, }, # members "description" : """A collection of objects providing information specific to interface counter discontinuities.""", }, # group
"linkUpDownNotificationsGroup" : { "nodetype" : "group", "moduleName" : "IF-MIB", "oid" : "1.3.6.1.2.1.31.2.1.14", "status" : "current", "members" : { "linkUp" : { "nodetype" : "member", "module" : "IF-MIB" }, "linkDown" : { "nodetype" : "member", "module" : "IF-MIB" }, }, # members "description" : """The notifications which indicate specific changes in the value of ifOperStatus.""", }, # group
Maybe it would make sense to keep the group type information somewhere in python structures?
thanks, ilya