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

more leafs inside augment causing loop

    XMLWordPrintable

    Details

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

      ONOS BUILD

    • Story Points:
      3

      Description

      module Test {
      yang-version 1;
      namespace "http://huawei.com";
      prefix Ant;
      description "Interval before a route is declared invalid";

      container interface1 {
      leaf ifType

      { type string; }

      }

      typedef type1

      { type int8; }


      typedef type2 {
      type string {
      length "1..253";
      pattern
      '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))';
      }
      }


      typedef type3 { type int16; }

      typedef type4 { type int32; }
      typedef type5 { type int64; }

      typedef type6 { type uint8; }

      typedef type7 { type uint16; }

      typedef type8 { type uint32; }

      typedef type9 { type uint64; }

      typedef type10 { type type1; }

      typedef type11 { type int8; }

      typedef type12

      { type type1; }

      /* need to impelement
      typedef type13

      { type decimal64; }

      typedef type14

      { type binary; }

      */

      /*
      typedef type15 {
      type bits {
      bit disable-nagle

      { position 0; }

      bit auto-sense-speed

      { position 1; }

      bit 10-Mb-only

      { position 2; }

      }
      }
      */

      /*
      typedef type16

      { type instance-identifier; }

      typedef type17

      { type leafref; }

      typedef type18

      { type identityref; }

      */

      typedef type19

      { type string; }

      augment "/Test/interface1" {

      when "ifType='ds0'";
      reference
      "RFC 2578: Structure of Management Information Version 2 (SMIv2)";
      status current;
      leaf ds0ChannelNumber

      { type int16; }

      leaf typedef1

      { type type1; }

      leaf typedef2

      { type type2; }

      leaf typedef3

      { type type3; }

      leaf typedef4

      { type type4; }

      leaf typedef5

      { type type5; }

      leaf typedef6

      { type type6; }

      leaf typedef7

      { type type8; }

      leaf typedef9

      { type type9; }

      leaf typedef10

      { type type10; }

      leaf typedef11

      { type type11; }

      leaf typedef12

      { type type12; }

      }
      }

      Log:

      [INFO] Error stacktraces are turned on.
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building onlab-test 1.6.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ onlab-test —
      [INFO]
      [INFO] — jacoco-maven-plugin:0.7.5.201505241946:prepare-agent (default-prepare-agent) @ onlab-test —
      [INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/home/root1/onos/utils/test/target/jacoco.exec -Duser.language=en -Duser.region=US
      [INFO]
      [INFO] — yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) @ onlab-test —
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.796 s
      [INFO] Finished at: 2016-05-20T16:22:47+05:30
      [INFO] Final Memory: 21M/381M
      [INFO] ------------------------------------------------------------------------

      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)
      at org.onosproject.yangutils.utils.io.impl.YangIoUtils.whenDelimiterIsPersent(YangIoUtils.java:412)

        Attachments

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

          Activity

            People

            • Assignee:
              bsaraswal bharat saraswal
              Reporter:
              sathishmurugesan sathishkumar murugesan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: