[CONTROLLER-774] edit-config using POST results to error 400 Bad request Created: 05/Sep/14  Updated: 09/Sep/14  Resolved: 09/Sep/14

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

Type: Bug
Reporter: Jozef Jankula Assignee: Maros Marsalek
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Attachments: File odl_logs.7z    
Issue Links:
Duplicate
is duplicated by CONTROLLER-790 Enable to Edit parser using POST Resolved
External issue ID: 1715

 Description   

Test Steps:

Send request using POST
Content-type application/xml
Accept application/xml
http://hostname:8080/restconf/config/opendaylight-inventory:nodes/node/<connector-name>/yang-ext:mount/Cisco-IOS-XR-parser-cfg:parser

Received response:
STATUS 400 Bad request
<?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>

Expected response:
200 OK

Environment:
org.opendaylight.controller.version = 0.1
org.opendaylight.controller.build.scm.version = 8b4d61d841649cd054bb62b20fcc64e87cc7c36d
org.opendaylight.controller.build.user = jenkins-controller
org.opendaylight.controller.build.workspace = **********
org.opendaylight.controller.build.timestamp = 1409854132914
org.opendaylight.controller.build.machine = **********
[odl@pce-guest33 opendaylight]$



 Comments   
Comment by Jozef Jankula [ 05/Sep/14 ]

Attachment odl_logs.7z has been added with description: corresponding log files

Comment by Jozef Jankula [ 05/Sep/14 ]

Send <get-config> request using POST
Content-type application/xml
Accept application/xml

http://hostname:8080/restconf/config/opendaylight-inventory:nodes/node/<connector-name>/yang-ext:mount/Cisco-IOS-XR-parser-cfg:parser

Data:
<parser xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-parser-cfg">
<alias>
<commands>
<command>
<alias-name>
newaliaskacik
</alias-name>
<command>
show running config
</command>
</command>
</commands>
</alias>
</parser>

Similar <get-config> request using PUT is OK !!!
================================================

Comment by Maros Marsalek [ 08/Sep/14 ]

Tested. Works with following URL:

http://hostname:8080/restconf/config/opendaylight-inventory:nodes/node/<connector-name>/yang-ext:mount/

The last container named parser cannot be in the URI in order for POST to work.

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