Uploaded image for project: 'bgpcep'
  1. bgpcep
  2. BGPCEP-331

Openconfig mandatory descendant missing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Bugzilla Migration
    • Bugzilla Migration
    • BGP
    • None
    • Operating System: All
      Platform: All

    • 4779

      During system testing [1] a Change [0] for upcoming Weather event [2], it was uncovered that BGP openconfig code does not honor mandatory statement.
      The code should be fixed so that the following does not happen:

      Caused by: java.lang.IllegalArgumentException: Node (http://openconfig.net/yang/bgp?revision=2015-10-09)bgp is missing mandatory descendant /(http://openconfig.net/yang/bgp?revision=2015-10-09)global/config/as
      at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)[39:com.google.guava:18.0.0]
      at org.opendaylight.yangtools.yang.data.impl.schema.tree.MandatoryLeafEnforcer$Strict.enforceOnTreeNode(MandatoryLeafEnforcer.java:58)[59:org.opendaylight.yangtools.yang-data-impl:0.8.0.SNAPSHOT]

      For reference, the built .zip is in [3] and it was created by a multipatch job with these parameters [4].

      [0] https://git.opendaylight.org/gerrit/28666
      [1] https://jenkins.opendaylight.org/releng/job/bgpcep-csit-1node-userfeatures-only-beryllium/880/consoleFull
      [2] https://wiki.opendaylight.org/view/Weather#Bug_4355_-_Data_Tree:_Enforce_.27mandatory_true.27_leaf_presence_in_CONFIG_datastore
      [3] https://jenkins.opendaylight.org/releng/job/integration-multipatch-test-beryllium/5/org.opendaylight.integration$distribution-karaf/artifact/org.opendaylight.integration/distribution-karaf/0.4.0-SNAPSHOT/distribution-karaf-0.4.0-SNAPSHOT.zip
      [4] https://jenkins.opendaylight.org/releng/job/integration-multipatch-test-beryllium/5/parameters/

            milos.fabian@pantheon.tech Milos Fabian
            vrpolak Vratko Polak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: