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

[ONOS-YANG-DEMO1]Issue after getting serializer registered

    Details

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

      Description

      Yang :
      module demo1 {
      yang-version 1;
      namespace "namespace1";
      prefix "demo1";
      revision "2013-07-15";
      container device {
      list device {
      key deviceid;
      leaf deviceid

      { type string; }

      leaf Customs-supervisor

      { type string; description "name of the customs-supervisor."; }

      leaf Merchandiser-supervisor

      { type string; description "name of merchandiser-supervisor"; }

      list Material-supervisor {
      key "name";
      leaf name

      { type string; description "name of logistics-supervisor"; }

      leaf departmentId

      { type string; description "name of department"; }

      }

      container Purchasing-supervisor {
      leaf purchasing-specialist

      { type string; description "name of the purchasing-specialist person"; }

      leaf-list support

      { type string; description "name of the support person"; }

      }

      leaf-list Warehouse-supervisor

      { type string; description "name of the warehouse-supervisor's"; }

      leaf Trading-supervisor

      { type string; description "name of the trading-supervisor"; }

      leaf-list Employee-id

      { type string; description "list of the employee id"; }

      }
      }
      }

      Json :
      {

      "device": [{
      "deviceid": "string1-deviceid",
      "Customs-supervisor": "string2",
      "Merchandiser-supervisor": "string3",
      "Warehouse-supervisor": ["string4.1", "string4.2", "string4.3"],
      "Trading-supervisor": "string4",
      "Employee-id": ["string4.1", "string4.2", "string4.3"],
      "Material-supervisor": [

      { "name": "string5", "departmentId": "string6" }

      ],
      "Purchasing-supervisor":

      { "purchasing-specialist": "string7", "support": ["string8.1", "string8.2", "string8.3"] }

      }]

      }

      ERROR :

      { "code": 500, "message": "org.onosproject.yang.runtime.helperutils.SerializerHelper.initializeResourceId(SerializerHelper.java:78)" }

        Attachments

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

          Activity

            People

            • Assignee:
              huawei-adarsh Adarsh m
              Reporter:
              huawei-adarsh Adarsh m
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: