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

YANG Compiler: OpenConfig Integration issues.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.11.0
    • Fix Version/s: None
    • Component/s: YangCompiler
    • Labels:
      None

      Description

      Defect 4 : Exception occurring for unique. [This defect alone belongs to this JIRA]
      Logs :

      .
      BUILD FAILED: //models/demo:onos-models-demo-yang#srcs failed on step yang-compile with an exception:
      org.onosproject.yang.compiler.translator.tojava.javamodel.YangJavaUsesTranslator cannot be cast to org.onosproject.yang.compiler.datamodel.YangLeavesHolder
      java.lang.ClassCastException: org.onosproject.yang.compiler.translator.tojava.javamodel.YangJavaUsesTranslator cannot be cast to org.onosproject.yang.compiler.datamodel.YangLeavesHolder
      at org.onosproject.yang.compiler.parser.impl.parserutils.ListenerUtil.getReferenceLeafFromUnique(ListenerUtil.java:549)
      at org.onosproject.yang.compiler.parser.impl.parserutils.ListenerUtil.validateUniqueInList(ListenerUtil.java:478)
      at org.onosproject.yang.compiler.parser.impl.listeners.ListListener.processListExit(ListListener.java:167)
      at org.onosproject.yang.compiler.parser.impl.TreeWalkListener.exitListStatement(TreeWalkListener.java:1258)
      at org.onosproject.yang.compiler.parser.antlrgencode.GeneratedYangParser$ListStatementContext.exitRule(GeneratedYangParser.java:12653)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.exitRule(ParseTreeWalker.java:71)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:54)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.onosproject.yang.compiler.parser.impl.YangUtilsParserManager.getDataModel(YangUtilsParserManager.java:92)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.parseYangFileInfoSet(YangCompilerManager.java:340)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.processYangFiles(YangCompilerManager.java:211)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.compileYangFiles(YangCompilerManager.java:100)
      at org.onosproject.yang.compiler.plugin.buck.YangGenerator.execute(YangGenerator.java:93)
      at org.onosproject.yang.compiler.plugin.buck.YangStep.execute(YangStep.java:71)
      at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:62)
      at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:1240)
      at com.facebook.buck.rules.CachingBuildEngine.lambda$null$0(CachingBuildEngine.java:320)
      at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$submitWithSemaphore$0(WeightedListeningExecutorService.java:77)
      at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1442)
      at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1433)
      at com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(Futures.java:1408)
      at com.google.common.util.concurrent.Futures$2$1.run(Futures.java:1177)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

      ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Defect 5 : Error is thrown when type-def name is same as identity-ref.
      openconfig-bgp-common.yang :
      leaf remove-private-as

      { // could also make this a container with a flag to enable // remove-private and separate option. here, option implies // remove-private is enabled. type oc-bgp-types:remove-private-as-option; description "Remove private AS numbers from updates sent to peers - when this leaf is not specified, the AS_PATH attribute should be sent to the peer unchanged"; }

      openconfig-bgp-types.yang
      identity REMOVE_PRIVATE_AS_OPTION

      { description "Base identity for options for removing private autonomous system numbers from the AS_PATH attribute"; }

      identity PRIVATE_AS_REMOVE_ALL

      { base REMOVE_PRIVATE_AS_OPTION; description "Strip all private autonmous system numbers from the AS_PATH. This action is performed regardless of the other content of the AS_PATH attribute, and for all instances of private AS numbers within that attribute."; }

      identity PRIVATE_AS_REPLACE_ALL

      { base REMOVE_PRIVATE_AS_OPTION; description "Replace all instances of private autonomous system numbers in the AS_PATH with the local BGP speaker's autonomous system number. This action is performed regardless of the other content of the AS_PATH attribute, and for all instances of private AS number within that attribute."; }

      typedef remove-private-as-option {
      type identityref

      { base REMOVE_PRIVATE_AS_OPTION; }

      description
      "Set of options for configuring how private AS path numbers
      are removed from advertisements";
      }

      .
      [-] PROCESSING BUCK FILES...FINISHED 2.3s [100%] 🐳 New buck daemon
      [+] DOWNLOADING... (0.00 B/S, TOTAL: 0.00 B, 0 Artifacts)
      [+] BUILDING...4.6s [11%] (131/139 JOBS, 0 UPDATED, 0 [0.0%] CACHE MISS)

      => IDLE
      => IDLE
      => IDLE
      => //models/demo:onos-models-demo-yang#srcs... 1.4s (running yang-compile[1.4s])
      org.onosproject.yang.compiler.translator.exception.TranslatorException: Failed to prepare generate code for typedef node remove-private-as-optionin 467 at 2 in /home/root1/onos/models/demo/src/openconfig-bgp-types.yang file RemovePrivateAsOption.java is already generated.please check whether multiple yang files has same module/submodule "name" and "namespace"or You may have generated code of previous build present in your directory.
      at org.onosproject.yang.compiler.translator.tojava.javamodel.YangJavaTypeDefTranslator.generateCodeExit(YangJavaTypeDefTranslator.java:159)
      at org.onosproject.yang.compiler.translator.tojava.JavaCodeGeneratorUtil.generateCodeExit(JavaCodeGeneratorUtil.java:161)
      at org.onosproject.yang.compiler.translator.tojava.JavaCodeGeneratorUtil.generateJavaCode(JavaCodeGeneratorUtil.java:99)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.translateToJava(YangCompilerManager.java:378)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.processYangFiles(YangCompilerManager.java:217)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.compileYangFiles(YangCompilerManager.java:100)
      at org.onosproject.yang.compiler.plugin.buck.YangGenerator.execute(YangGenerator.java:93)
      at org.onosproject.yang.compiler.plugin.buck.YangStep.execute(YangStep.java:71)
      at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:62)
      at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:1240)
      at com.facebook.buck.rules.CachingBuildEngine.lambda$null$0(CachingBuildEngine.java:320)
      at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$submitWithSemaphore$0(WeightedListeningExecutorService.java:77)
      BUILD FAILED: //models/demo:onos-models-demo-yang#srcs failed on step yang-compile with an exception:
      Failed to prepare generate code for typedef node remove-private-as-optionin 467 at 2 in /home/root1/onos/models/demo/src/openconfig-bgp-types.yang file RemovePrivateAsOption.java is already generated.please check whether multiple yang files has same module/submodule "name" and "namespace"or You may have generated code of previous build present in your directory.
      org.onosproject.yang.compiler.translator.exception.TranslatorException: Failed to prepare generate code for typedef node remove-private-as-optionin 467 at 2 in /home/root1/onos/models/demo/src/openconfig-bgp-types.yang file RemovePrivateAsOption.java is already generated.please check whether multiple yang files has same module/submodule "name" and "namespace"or You may have generated code of previous build present in your directory.
      at org.onosproject.yang.compiler.translator.tojava.JavaCodeGeneratorUtil.generateJavaCode(JavaCodeGeneratorUtil.java:103)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.translateToJava(YangCompilerManager.java:378)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.processYangFiles(YangCompilerManager.java:217)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.compileYangFiles(YangCompilerManager.java:100)
      at org.onosproject.yang.compiler.plugin.buck.YangGenerator.execute(YangGenerator.java:93)
      at org.onosproject.yang.compiler.plugin.buck.YangStep.execute(YangStep.java:71)
      at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:62)
      at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:1240)
      at com.facebook.buck.rules.CachingBuildEngine.lambda$null$0(CachingBuildEngine.java:320)
      at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$submitWithSemaphore$0(WeightedListeningExecutorService.java:77)
      at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1442)
      at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1433)
      at com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(Futures.java:1408)
      at com.google.common.util.concurrent.Futures$2$1.run(Futures.java:1177)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

      [-] PROCESSING BUCK FILES...FINISHED 2.3s [100%] 🐳 New buck daemon
      [-] DOWNLOADING... (0.00 B/S AVG, TOTAL: 0.00 B, 0 Artifacts)
      [-] BUILDING...FINISHED 4.7s [100%] (132/139 JOBS, 0 UPDATED, 0 [0.0%] CACHE MISS)
      root1@root1-HP-EliteBook-840-G2:~/onos$
      ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Defect 6 : Failing to link in augment and grouping scenario.

      Hi,

      Pls check this issue and confirm,

      Defect 6 : Failing to link in augment and grouping scenario.

      Logs :
      BUILD FAILED: //models/demo:onos-models-demo-yang#srcs failed on step yang-compile with an exception:
      Error in file: openconfig-if-ip in /home/root1/onos/models/demo/src/openconfig-if-ip.yang at line: 0 at position: 0
      Failed to link /oc-if:interfaces/oc-if:interface/oc-if:subinterfaces/oc-if:subinterface/oc-ip:ipv6/oc-ip:addresses/oc-ip:address in 912 at 2 in /home/root1/onos/models/demo/src/openconfig-if-ip.yang
      org.onosproject.yang.compiler.api.YangCompilerException: Error in file: openconfig-if-ip in /home/root1/onos/models/demo/src/openconfig-if-ip.yang at line: 0 at position: 0
      Failed to link /oc-if:interfaces/oc-if:interface/oc-if:subinterfaces/oc-if:subinterface/oc-ip:ipv6/oc-ip:addresses/oc-ip:address in 912 at 2 in /home/root1/onos/models/demo/src/openconfig-if-ip.yang
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.resolveDependenciesUsingLinker(YangCompilerManager.java:316)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.processYangFiles(YangCompilerManager.java:214)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.compileYangFiles(YangCompilerManager.java:100)
      at org.onosproject.yang.compiler.plugin.buck.YangGenerator.execute(YangGenerator.java:93)
      at org.onosproject.yang.compiler.plugin.buck.YangStep.execute(YangStep.java:71)
      at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:62)
      at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:1240)
      at com.facebook.buck.rules.CachingBuildEngine.lambda$null$0(CachingBuildEngine.java:320)
      at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$submitWithSemaphore$0(WeightedListeningExecutorService.java:77)
      at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1442)
      at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1433)
      at com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(Futures.java:1408)
      at com.google.common.util.concurrent.Futures$2$1.run(Futures.java:1177)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Defect 7 : Failed to prepare generate code for typedef node
      Logs :
      org.onosproject.yang.compiler.translator.exception.TranslatorException: Failed to prepare generate code for typedef node tunnel-typein 323 at 2 in /home/root1/onos/models/demo/src/openconfig-mpls-types.yang file TunnelType.java is already generated.please check whether multiple yang files has same module/submodule "name" and "namespace"or You may have generated code of previous build present in your directory.
      at org.onosproject.yang.compiler.translator.tojava.javamodel.YangJavaTypeDefTranslator.generateCodeExit(YangJavaTypeDefTranslator.java:159)
      at org.onosproject.yang.compiler.translator.tojava.JavaCodeGeneratorUtil.generateCodeExit(JavaCodeGeneratorUtil.java:161)
      at org.onosproject.yang.compiler.translator.tojava.JavaCodeGeneratorUtil.generateJavaCode(JavaCodeGeneratorUtil.java:99)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.translateToJava(YangCompilerManager.java:378)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.processYangFiles(YangCompilerManager.java:217)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.compileYangFiles(YangCompilerManager.java:100)
      at org.onosproject.yang.compiler.plugin.buck.YangGenerator.execute(YangGenerator.java:93)
      at org.onosproject.yang.compiler.plugin.buck.YangStep.execute(YangStep.java:71)
      at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:62)
      at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:1240)
      at com.facebook.buck.rules.CachingBuildEngine.lambda$null$0(CachingBuildEngine.java:320)
      at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$submitWithSemaphore$0(WeightedListeningExecutorService.java:77)
      BUILD FAILED: //models/demo:onos-models-demo-yang#srcs failed on step yang-compile with an exception:
      Failed to prepare generate code for typedef node tunnel-typein 323 at 2 in /home/root1/onos/models/demo/src/openconfig-mpls-types.yang file TunnelType.java is already generated.please check whether multiple yang files has same module/submodule "name" and "namespace"or You may have generated code of previous build present in your directory.
      org.onosproject.yang.compiler.translator.exception.TranslatorException: Failed to prepare generate code for typedef node tunnel-typein 323 at 2 in /home/root1/onos/models/demo/src/openconfig-mpls-types.yang file TunnelType.java is already generated.please check whether multiple yang files has same module/submodule "name" and "namespace"or You may have generated code of previous build present in your directory.
      at org.onosproject.yang.compiler.translator.tojava.JavaCodeGeneratorUtil.generateJavaCode(JavaCodeGeneratorUtil.java:103)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.translateToJava(YangCompilerManager.java:378)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.processYangFiles(YangCompilerManager.java:217)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.compileYangFiles(YangCompilerManager.java:100)
      at org.onosproject.yang.compiler.plugin.buck.YangGenerator.execute(YangGenerator.java:93)
      at org.onosproject.yang.compiler.plugin.buck.YangStep.execute(YangStep.java:71)
      at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:62)
      at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:1240)
      at com.facebook.buck.rules.CachingBuildEngine.lambda$null$0(CachingBuildEngine.java:320)
      at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$submitWithSemaphore$0(WeightedListeningExecutorService.java:77)
      at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1442)
      at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1433)
      at com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(Futures.java:1408)
      at com.google.common.util.concurrent.Futures$2$1.run(Futures.java:1177)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

      [-] PROCESSING BUCK FILES...FINISHED 2.4s [100%] 🐳 New buck daemon
      [-] DOWNLOADING... (0.00 B/S AVG, TOTAL: 0.00 B, 0 Artifacts)
      [-] BUILDING...FINISHED 4.3s [100%] (132/139 JOBS, 0 UPDATED, 0 [0.0%] CACHE MISS)
      root1@root1-HP-EliteBook-840-G2:~/onos$

      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Defect 8 : Not able to find path for leaf-ref.
      Logs :

      BUILD FAILED: //models/demo:onos-models-demo-yang#srcs failed on step yang-compile with an exception:
      Error in file: openconfig-platform-transceiver in /home/root1/onos/models/demo/src/openconfig-platform-transceiver.yang at line: 452 at position: 8
      YANG file error: There is no leaf/leaf-list in YANG node as mentioned in the path predicate of the leafref path /oc-platform:components/oc-platform:component[oc-platform:name=current()/../oc-platform:hardware-port]/oc-transceiver:transceiver/oc-transceiver:physical-channels/oc-transceiver:channel/oc-transceiver:index
      org.onosproject.yang.compiler.api.YangCompilerException: Error in file: openconfig-platform-transceiver in /home/root1/onos/models/demo/src/openconfig-platform-transceiver.yang at line: 452 at position: 8
      YANG file error: There is no leaf/leaf-list in YANG node as mentioned in the path predicate of the leafref path /oc-platform:components/oc-platform:component[oc-platform:name=current()/../oc-platform:hardware-port]/oc-transceiver:transceiver/oc-transceiver:physical-channels/oc-transceiver:channel/oc-transceiver:index
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.resolveDependenciesUsingLinker(YangCompilerManager.java:316)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.processYangFiles(YangCompilerManager.java:214)
      at org.onosproject.yang.compiler.tool.impl.YangCompilerManager.compileYangFiles(YangCompilerManager.java:100)
      at org.onosproject.yang.compiler.plugin.buck.YangGenerator.execute(YangGenerator.java:93)
      at org.onosproject.yang.compiler.plugin.buck.YangStep.execute(YangStep.java:71)
      at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:62)
      at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:1240)
      at com.facebook.buck.rules.CachingBuildEngine.lambda$null$0(CachingBuildEngine.java:320)
      at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$submitWithSemaphore$0(WeightedListeningExecutorService.java:77)
      at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1442)
      at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1433)
      at com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(Futures.java:1408)
      at com.google.common.util.concurrent.Futures$2$1.run(Futures.java:1177)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

      [-] PROCESSING BUCK FILES...FINISHED 2.1s [100%] 🐳 New buck daemon
      [-] DOWNLOADING... (0.00 B/S AVG, TOTAL: 0.00 B, 0 Artifacts)
      [-] BUILDING...FINISHED 4.4s [100%] (132/139 JOBS, 0 UPDATED, 0 [0.0%] CACHE MISS)
      root1@root1-HP-EliteBook-840-G2:~/onos$ ^C

      ------------------------------------------------------------------------------------------------------------------------------------------------------
      Defect 9 : Error is thrown for boolean value with single quotes.(openroadm)
      BUILD FAILED: //models/micro:onos-models-micro-yang#srcs failed on step yang-compile with an exception:
      YANG file error : Input value "'true'" is not a valid BOOLEAN
      org.onosproject.yang.compiler.datamodel.utils.builtindatatype.DataTypeException: YANG file error : Input value "'true'" is not a valid BOOLEAN
      at org.onosproject.yang.compiler.datamodel.YangType.isValidValue(YangType.java:342)
      at org.onosproject.yang.compiler.datamodel.YangLeaf.validateDataOnExit(YangLeaf.java:454)
      at org.onosproject.yang.compiler.parser.impl.listeners.LeafListener.processLeafExit(LeafListener.java:173)
      at org.onosproject.yang.compiler.parser.impl.TreeWalkListener.exitLeafStatement(TreeWalkListener.java:1252)
      at org.onosproject.yang.compiler.parser.antlrgencode.GeneratedYangParser$LeafStatementContext.exitRule(GeneratedYangParser.java:13991)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.exitRule(ParseTreeWalker.java:71)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:54)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      at org.onosproject.yang.compiler.parser.impl.YangUtilsParserManager.getDataModel(YangUtilsParserManager.java:92)
      at org.onosproject.yang.compiler.tool.YangCompilerManager.parseYangFileInfoSet(YangCompilerManager.java:322)
      at org.onosproject.yang.compiler.tool.YangCompilerManager.processYangFiles(YangCompilerManager.java:193)
      at org.onosproject.yang.compiler.tool.YangCompilerManager.compileYangFiles(YangCompilerManager.java:98)
      at org.onosproject.yang.compiler.plugin.buck.YangGenerator.execute(YangGenerator.java:93)
      at org.onosproject.yang.compiler.plugin.buck.YangStep.execute(YangStep.java:71)
      at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:62)
      at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:1240)
      at com.facebook.buck.rules.CachingBuildEngine.lambda$null$0(CachingBuildEngine.java:320)
      at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$submitWithSemaphore$0(WeightedListeningExecutorService.java:77)
      at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1442)
      at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1433)
      at com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(Futures.java:1408)
      at com.google.common.util.concurrent.Futures$2$1.run(Futures.java:1177)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

      [-] PROCESSING BUCK FILES...FINISHED 2.1s [100%] 🐳 New buck daemon
      [-] DOWNLOADING... (0.00 B/S AVG, TOTAL: 0.00 B, 0 Artifacts)
      [-] BUILDING...FINISHED 4.3s [100%] (129/136 JOBS, 0 UPDATED, 0 [0.0%] CACHE MISS)
      root1@root1-HP-EliteBook-840-G2:~/onos$
      -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Defect 10 : Exception occurred for L3VPN config via json. - fixed (revision date issue)
      onos> exception-display
      java.lang.NullPointerException
      at org.onosproject.yang.runtime.impl.YobUtils.getClassLoader(YobUtils.java:361)[177:org.onosproject.onos-yang-runtime:2.0.0.SNAPSHOT]
      at org.onosproject.yang.runtime.impl.YobUtils.handleNodeKey(YobUtils.java:821)[177:org.onosproject.onos-yang-runtime:2.0.0.SNAPSHOT]
      at org.onosproject.yang.runtime.impl.DefaultYobBuilder.convertRscIdToMoId(DefaultYobBuilder.java:136)[177:org.onosproject.onos-yang-runtime:2.0.0.SNAPSHOT]
      at org.onosproject.yang.runtime.impl.DefaultYobBuilder.getYangObject(DefaultYobBuilder.java:72)[177:org.onosproject.onos-yang-runtime:2.0.0.SNAPSHOT]
      at org.onosproject.yang.runtime.impl.DefaultModelConverter.createModel(DefaultModelConverter.java:42)[177:org.onosproject.onos-yang-runtime:2.0.0.SNAPSHOT]
      at org.onosproject.yang.YangRuntimeManager.createModel(YangRuntimeManager.java:140)[181:org.onosproject.onos-apps-yang:1.11.0.SNAPSHOT]
      at org.onosproject.l3vpn.netl3vpn.impl.NetL3VpnManager.getModelObjects(NetL3VpnManager.java:326)[207:org.onosproject.onos-apps-l3vpn:1.11.0.SNAPSHOT]
      at org.onosproject.l3vpn.netl3vpn.impl.NetL3VpnManager.processCreateFromStore(NetL3VpnManager.java:282)[207:org.onosproject.onos-apps-l3vpn:1.11.0.SNAPSHOT]
      at org.onosproject.l3vpn.netl3vpn.impl.NetL3VpnManager.access$300(NetL3VpnManager.java:143)[207:org.onosproject.onos-apps-l3vpn:1.11.0.SNAPSHOT]
      at org.onosproject.l3vpn.netl3vpn.impl.NetL3VpnManager$InternalEventAccumulator.processItems(NetL3VpnManager.java:1037)[207:org.onosproject.onos-apps-l3vpn:1.11.0.SNAPSHOT]
      at org.onlab.util.AbstractAccumulator$ProcessorTask.run(AbstractAccumulator.java:162)[123:org.onosproject.onlab-misc:1.11.0.SNAPSHOT]
      at java.util.TimerThread.mainLoop(Timer.java:555)[:1.8.0_101]
      at java.util.TimerThread.run(Timer.java:505)[:1.8.0_101]

      onos>

        Attachments

        1. Defect_4_src.tar1
          73 kB
        2. Defect_5_src.tar1
          273 kB
        3. Defect_6_Untitled Folder.tar1
          193 kB
        4. Defect_7_mpls.tar1
          245 kB
        5. Defect_8_src.tar1
          258 kB
        6. Defect_9_yang (1).tar1
          543 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            surya surya au
            Reporter:
            huawei-adarsh Adarsh m
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: