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

Yangtools Mangling REST names

    XMLWordPrintable

Details

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

    • 1483

    Description

      I have the following model

      container CSEBase {
      description "Resource at the root of the tree";
      container CSEBaseAttributes {
      description "all attributes of CSEBase are in this container";
      uses commonAttributesGroup;
      leaf cseID

      { type string; description "The globally unique CSE identifier."; mandatory true; }

      I noticed that the container name "CSEBaseAttributes" was changed to "Attributes". I was trying a JSON PUT for quite some time and RESTconf API explorer showed the actual URI

      {
      "CSEBase": {
      "Attributes":

      { "cseID": "CSE-Id-Reinaldo" }

      }
      }

      Without a tool like RESTconf API explorer I would never know that this mangling happened and to what name it was changed exactly. I checked RESTconf draft and the name CSEBaseAttributes is allowed. Maybe having the name prefix as the module is the problem.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            repenno Reinaldo Penno
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: