[CONTROLLER-790] Enable to Edit parser using POST Created: 08/Sep/14  Updated: 25/Jul/23  Resolved: 09/Sep/14

Status: Resolved
Project: controller
Component/s: netconf
Affects Version/s: None
Fix Version/s: None

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

Operating System: Windows
Platform: PC


Attachments: File opendaylight.tar(4).xz    
Issue Links:
Duplicate
duplicates CONTROLLER-774 edit-config using POST results to err... Resolved
External issue ID: 1755

 Description   

Steps

ODL was connected to XRVR and a netonf session setup and we tried to edit config of attached device

URL

config/opendaylight-inventory:nodes/node/controller-config_xrvr/yang-ext:mount/Cisco-IOS-XR-parser-cfg:parser

METHOD == POST

PAYLOAD

<parser xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-parser-cfg">
<alias>
<commands>
<command>
<alias-name>
Dusan
</alias-name>
<command>
show all youcaneat
</command>
</command>
</commands>
</alias>
</parser>

RESULT

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf">
<error>
<error-type>protocol</error-type>
<error-tag>invalid-value</error-tag>
<error-message>Data schema node was not found for parser</error-message>
</error>
</errors>

From log , not as much as I expected actually

08 14:10:02.082 PDT [http-bio-8080-exec-3] ERROR o.o.y.y.d.i.c.xml.XmlStreamUtils - Failed to find codec for type (urn:ietf:params:xml:ns:yang:1)leafref [xpath=/config:services/config:service[config:type=current()/../type]/config:instance/config:name], falling back to using stream
2014-09-

Version

org.opendaylight.controller.version = 0.1
org.opendaylight.controller.build.scm.version = a383b6b25de528a456a909ebdeaf5d4d2cfe1415
org.opendaylight.controller.build.user = jenkins-controller
org.opendaylight.controller.build.workspace = **********
org.opendaylight.controller.build.timestamp = 1410205377028
org.opendaylight.controller.build.machine = **********



 Comments   
Comment by RichardHill [ 08/Sep/14 ]

Attachment opendaylight.tar(4).xz has been added with description: logs and config

Comment by Maros Marsalek [ 09/Sep/14 ]

This is the same issue as in 1715, and it works but the URI has to be different. Please see comment for 1715

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