Patch from Jeff Gehlbach
authorAlan T. DeKok <aland@freeradius.org>
Fri, 21 Apr 2017 17:26:51 +0000 (13:26 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 21 Apr 2017 17:26:51 +0000 (13:26 -0400)
The problem is that "radiusObject" is defined with an OBJECT-IDENTITY
macro, but it needs to be done with OBJECT-TYPE (i.e. a leaf node) to be
eligible for use in the OBJECTS clause of a NOTIFICATION-TYPE macro.
I've gotten jsmiparser happy by making that change, declaring the
object's syntax to be SNMP-FRAMEWORK-MIB::SnmpAdminString and setting
its max-access to "accessible-for-notify". These changes are reflected
in the attached version of the MIB definition.

mibs/FREERADIUS-MGMT-MIB.mib

index a115711..8cb4009 100644 (file)
@@ -5,7 +5,9 @@ IMPORTS
        OBJECT-IDENTITY
                FROM SNMPv2-SMI
        freeRadiusMgmt
-               FROM FREERADIUS-SMI;
+               FROM FREERADIUS-SMI
+       SnmpAdminString
+               FROM SNMP-FRAMEWORK-MIB;
 
 freeradiusObjects MODULE-IDENTITY
        LAST-UPDATED "200712170000Z"
@@ -25,7 +27,9 @@ freeradiusObjects MODULE-IDENTITY
                "Generic objects used by notification MIBs"
        ::= { freeRadiusMgmt 1 }
 
-radiusObject OBJECT-IDENTITY
+radiusObject OBJECT-TYPE
+       SYNTAX  SnmpAdminString
+       MAX-ACCESS accessible-for-notify
        STATUS  current
        DESCRIPTION
                "A generic object"