[BGPCEP-331] Openconfig mandatory descendant missing Created: 15/Dec/15  Updated: 03/Mar/19  Resolved: 17/Dec/15

Status: Resolved
Project: bgpcep
Component/s: BGP
Affects Version/s: Bugzilla Migration
Fix Version/s: Bugzilla Migration

Type: Bug
Reporter: Vratko Polak Assignee: Milos Fabian
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks YANGTOOLS-511 Data Tree: Enforce 'mandatory true' l... Resolved
is blocked by BGPCEP-335 Single feature tests fails due to "Us... Resolved
External issue ID: 4779

 Description   

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/



 Comments   
Comment by Milos Fabian [ 17/Dec/15 ]

https://git.opendaylight.org/gerrit/#/c/31486/

Generated at Wed Feb 07 19:12:44 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.