[NETCONF-233] OpenDaylight RESTCONF XML selects wrong YANG model for southbound NETCONF Created: 22/Jul/16  Updated: 15/Mar/19  Resolved: 24/Oct/16

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

Type: Bug
Reporter: Giles Heron Assignee: Ivan Hrasko
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Zip Archive logs.zip    
External issue ID: 6256

 Description   

After mounting a Cisco IOS XR device and attempting to configure L2VPN using a POST to http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/asr9k1/yang-ext:mount with a body of:

<l2vpn xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-l2vpn-cfg">
</l2vpn>

ODL attempts to access Cisco-IOS-XR-l2vpn-oper instead of Cisco-IOS-XR-l2vpn-cfg.

this doesn't occur when doing a PUT to ...yang-ext:mount/Cisco-IOS-XR-l2vpn-cfg:l2vpn, or when using JSON instead of XML as the payload.

zipped logs attached.



 Comments   
Comment by Giles Heron [ 22/Jul/16 ]

Attachment logs.zip has been added with description: zipped logs

Comment by Ivan Hrasko [ 27/Sep/16 ]

Gerrit patch:
https://git.opendaylight.org/gerrit/#/c/46224/1

Comment by Ivan Hrasko [ 05/Oct/16 ]

Cherry pick for Be-4:
https://git.opendaylight.org/gerrit/#/c/46530

Comment by Ivan Hrasko [ 24/Oct/16 ]

Merged also to Boron-1.

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