[NETCONF-447] SchemaValidationFailedException for openconfig data Created: 08/Aug/17  Updated: 15/Mar/19  Resolved: 10/Aug/17

Status: Resolved
Project: netconf
Component/s: restconf-nb
Affects Version/s: None
Fix Version/s: None

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

Operating System: All
Platform: All


Issue Links:
Duplicate
duplicates NETCONF-446 Adding topology-netconf node via Rest... Resolved
External issue ID: 8944

 Description   

This is almost exactly the same as NETCONF-446 but the data is different (although still XML) and there are no bundle refreshes, so this seems unrelated to ODLPARENT-110.

method: PUT
URL: 127.0.0.1:8181/restconf/config/openconfig-network-instance:network-instances/network-instance/global-bgp/openconfig-network-instance:protocols/protocol/openconfig-policy-types:BGP/example-bgp-rib/bgp/neighbors/neighbor/10.29.12.214
data: <neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
<neighbor-address>10.29.12.214</neighbor-address>
<route-reflector>
<config>
<route-reflector-client>false</route-reflector-client>
</config>
</route-reflector>
<timers>
<config>
<hold-time>180</hold-time>
</config>
</timers>
<transport>
<config>
<remote-port>17900</remote-port>
<passive-mode>true</passive-mode>
</config>
</transport>
<config>
<peer-type>INTERNAL</peer-type>
<auth-password>topsecret</auth-password>
</config>
<afi-safis>
<afi-safi>
<afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-UNICAST</afi-safi-name>
</afi-safi>
</afi-safis>
</neighbor>

The long response [0] starts with:
<errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf"><error><error-type>application</error-type><error-tag>operation-failed</error-tag><error-message>canCommit encountered an unexpected failure</error-message><error-info>org.opendaylight.yangtools.yang.data.impl.schema.tree.SchemaValidationFailedException: Child /(http://openconfig.net/yang/network-instance?revision=2015-10-18)network-instances/network-instance/network-instance[

{(http://openconfig.net/yang/network-instance?revision=2015-10-18)name=global-bgp}

]/protocols/protocol/protocol[

{(http://openconfig.net/yang/network-instance?revision=2015-10-18)identifier=(http://openconfig.net/yang/policy-types?revision=2015-10-09)BGP, (http://openconfig.net/yang/network-instance?revision=2015-10-18)name=example-bgp-rib}

]/AugmentationIdentifier

{childNames=[(urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions?revision=2016-06-14)bgp]}

/(urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions?revision=2016-06-14)bgp/neighbors/neighbor/neighbor[

{(urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions?revision=2016-06-14)neighbor-address=10.29.12.214}

]/neighbor[

{(urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions?revision=2016-06-14)neighbor-address=10.29.12.214}

] is not present in schema tree.

Similarly to NETCONF-446 the last segment of path (neighbor[] in this case) appears twice, so that might be the bug.

[0] https://logs.opendaylight.org/releng/jenkins092/bgpcep-csit-1node-userfeatures-only-nitrogen/106/log.html.gz#s1-s3-t1-k1-k2-k1-k4-k7-k1


Generated at Wed Feb 07 20:15:03 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.