Uploaded image for project: 'Network Controller'
  1. Network Controller
  2. SDNC-1303

Error message for operator name and provisioning code not proper when input value exceeds the max length

XMLWordPrintable

      configure device.deviceinfo.operatorname or provisioning code

      leaf x-0005b9-operator-name {
      config true;
      type string

      { length "0..32"; }

      reference
      "Device.DeviceInfo.X_0005B9_OperatorName";
      description
      "Operator Name used for VF and TEF.";
      }

      leaf provisioning-code {
      config true;
      type string

      { length "0..64"; }

      reference
      "Device.DeviceInfo.ProvisioningCode";

      -> when you configure the values more than max length allowed for string that is 32 for operator name and 64 for provisioning code  as per yang. error status dialog box in ODLUX UI message %s is not proper it should be more meaningful.

       

      Below is the error message displayed in GUI when vales string exceeds more that max limit of characters.

      Server Error. Status: [400] Error parsing input: String 'org.opendaylight.yangtools.yang.model.util.type.ResolvedLengthConstraint@35915e26' does not match allowed length constraint %s

       

      these are the SDNR-R karaf logs error file is attached in one of the zip file

      logs :

      opendaylight.netconf.restconf-nb-bierman02 - 1.9.1 | - | Error parsing json input
      ngthConstraint@35915e26' does not match allowed length constraint %s

        1. Capture.JPG
          Capture.JPG
          103 kB
        2. DeviceInfo_maxLengthError.7z
          109 kB
        3. log-cut.txt
          16 kB
        4. onecell@2020-05-29.yang
          905 kB
        5. ReadonlyGPV-special-characters-operatorname.7z
          317 kB

            highstreetherbert Herbert Eiselt
            ashaik ashaik
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: