org.onosproject.yang.compiler.api.YangCompilerException

YANG file error: Either "data-def-substatements" or "case" should be present in "augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface"".

Solutions on the web2

  • via JIRA by Gaurav Agrawal, 2 months ago
    YANG file error: Either "data-def-substatements" or "case" should be present in "augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface"".
  • via JIRA by Adarsh m, 1 month ago
    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
  • Stack trace

    • org.onosproject.yang.compiler.api.YangCompilerException: YANG file error: Either "data-def-substatements" or "case" should be present in "augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface"". at org.onosproject.yang.compiler.tool.YangCompilerManager.processYangFiles(YangCompilerManager.java:229) at org.onosproject.yang.compiler.tool.YangCompilerManager.compileYangFiles(YangCompilerManager.java:99) 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.