Using smidump 0.4.2-pre1 it seems like the minLength and maxLength fields disappear at times.

I’ve included two examples…

 

/*------------------------*/
/*------------------------*/
/*------------------------*/

TradiusSecret ::= TEXTUAL-CONVENTION
     DISPLAY-HINT    "32a"
     STATUS          current
     DESCRIPTION
          "A secret shared between the RADIUS server and a RADIUS client or another
           RADIUS server."
     SYNTAX          OCTET STRING (SIZE(1..32))

tradiusSvrAuthClientSecret OBJECT-TYPE
       SYNTAX     TradiusSecret
       MAX-ACCESS read-create
       STATUS     current
       DESCRIPTION
             "The secret shared with the client."
       ::= { tradiusSvrAuthClientEntry 5 }

  <xsd:simpleType name="TradiusSecret">
    <xsd:annotation>
      <xsd:documentation>
          A secret shared between the RADIUS server and a RADIUS client or another
          RADIUS server.
      </xsd:documentation>
      <xsd:appinfo>
        <displayHint>32a</displayHint>
      </xsd:appinfo>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
        <xsd:pattern value="(((#x00-#x7f)){1,32})"/>
    </xsd:restriction>
  </xsd:simpleType>


  <xsd:element name="tradiusSvrAuthClientSecret" type="TradiusSecret" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo>
        <maxAccess>read-write</maxAccess>
        <status>current</status>
        <oid>1.3.6.1.4.1.14707.1.1.7.1.3.1.1.5</oid>
      </xsd:appinfo>
      <xsd:documentation>
          The secret shared with the client.
      </xsd:documentation>
    </xsd:annotation>
  </xsd:element>


**Question : Why aren't "minLength" and "maxLength" nodes included?  Seems like smidump
knows about them, because they are used for the pattern.



/*------------------------*/
/*------------------------*/
/*------------------------*/

subscriberImsi OBJECT-TYPE
       SYNTAX     DisplayString (SIZE(13..15))
       MAX-ACCESS read-create
       STATUS     current
       DESCRIPTION
               "The subscriber's IMSI."
       ::= { subscriberEntry 4 }


  <xsd:element name="subscriberImsi" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo>
        <maxAccess>read-write</maxAccess>
        <status>current</status>
        <oid>1.3.6.1.4.1.14707.1.1.6.1.1.4</oid>
      </xsd:appinfo>
      <xsd:documentation>
          The subscriber's IMSI.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:simpleType>
      <xsd:restriction base="xsd:string">
        <xsd:pattern value="(((#x00-#x7f)){13,15})"/>
      </xsd:restriction>
    </xsd:simpleType>
  </xsd:element>

**Also here, no "minLength" or "maxLength"...


/*------------------------*/
/*------------------------*/
/*------------------------*/