Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-6370

[ONOS_YANG_TOOLS]Compilation error in generated code of RPC if namespace is too lengthy

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.0
    • Component/s: YangCompiler
    • Labels:
      None

      Description

      YANG file:
      module test23 {
      namespace "http://www.microsemi.com/microsemi-edge-assure/msea-cfm";
      prefix test ;

      container statistics {
      leaf port-num

      { type string; }

      }

      rpc transmit-linktrace {

      input {
      leaf abc

      { type string; }

      }

      output {
      anyxml data

      { description "The complete response from the Linktrace including the individual replies from remote MEPs and any intermediate MIPs"; }

      }
      }
      }

      JAVA generated:

      private static ResourceId getResourceId()

      { return new ResourceId.Builder().addBranchPointSchema("/", null) .addBranchPointSchema("transmit-linktrace", "http://www.microsemi .com/microsemi-edge-assure/msea-cfm").build(); }

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            gauravagrawal Gaurav Agrawal
            Reporter:
            Vidyashree-Huawei Vidyashree Rama
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: