Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-195

MDSAL code generator ignores "uses" in RPC input args

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None
    • Operating System: Linux
      Platform: PC

    • 1251

    Description

      If you generate code for the following yang model using org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl

      grouping global-fields {
      leaf glob-id

      {type uint32;}
      }

      rpc myRPC {

      input {
      leaf id {type uint32;}

      uses global-fields;
      }
      output {
      leaf success

      {type boolean;}

      }
      }

      the myRPCInput interface does not contain getter for "glob-id" field.
      I think the code generator cannot handle "uses" statement in RPC input arg.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            ashwin.pankaj@hotmail.com Ashwin Pankaj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: