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

[YANG UTILS] some YANG nodes are not translated into Java class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1

      Description

      From: Yixiao Chen
      Sent: Friday, July 15, 2016 5:44 PM
      To: Bharat Saraswal; Janani B; VinodS Kumar; Gaurav agrawal; Suchitra h n
      Cc: Henry Yu; Hesam Rahimi; Liutao (Tony); chengfan (D); Aihuaguo (Aihua Guo, CRC)
      Subject: YangUtils function
      Importance: High

      Hi guys,

      Today I dug more into Yangutil, and realized some YANG nodes are not translated into Java class. Please investigate it ASAP. Thanks.

      For example, in the attached IETF TE YANG model ietf-te-topology.yang has the following YANG node:

      grouping te-node-config-attributes {
      description "Configuration node attributes in a TE topology.";
      container te-node-attributes {
      description "Containing node attributes in a TE topology.";
      uses sch:schedules;
      leaf admin-status

      { type te-types:te-admin-status; description "The administrative state of the link."; }

      uses te-node-connectivity-matrix;
      uses te-node-info-attributes;
      } // te-node-attributes
      } // te-node-config-attributes

      In the Yang generated Java code, te-node-connectivity-matrix and te-node-info-attributes are missed.

      public interface TeNodeAttributes {

      /**

      • Returns the attribute adminStatus.
        *
      • @return value of adminStatus
        */
        TeAdminStatus adminStatus();

      /**

      • Builder for teNodeAttributes.
        */
        interface TeNodeAttributesBuilder { /** * Returns the attribute adminStatus. * * @return value of adminStatus */ TeAdminStatus adminStatus(); /** * Returns the builder object of adminStatus. * * @param adminStatus value of adminStatus * @return builder object of adminStatus */ TeNodeAttributesBuilder adminStatus(TeAdminStatus adminStatus); /** * Builds object of teNodeAttributes. * * @return object of teNodeAttributes. */ TeNodeAttributes build(); }

        }

        Attachments

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

          Activity

            People

            Assignee:
            Vidyashree-Huawei Vidyashree Rama
            Reporter:
            hyu2010 Henry Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: