[OPNFLWPLUG-69] RESTCONF Inventory is failing for "Get nodeconnector for a node" - Applies to OF10 & OF13 mininet Created: 15/Feb/14  Updated: 27/Sep/21  Resolved: 21/Feb/14

Status: Verified
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Madhusudhan Ananderi Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC



 Description   

Hello,

I am unable to get the nodeconnector for a node after starting the latest controller with -of13 option. I am curious to know whether the URL is changed. This is happening all the time after the hydrogen release.

How to reproduce the same issue:

1. Downloaded the latest plugin at https://jenkins.opendaylight.org/integration/job/integration-project-centralized-integration/lastSuccessfulBuild/artifact/distributions/base/target/distributions-base-0.1.2-SNAPSHOT-osgipackage.zip
2. Start the controller : ./run.sh -of13 -start
3. Start the mininet: sudo mn --controller=remote,ip=127.0.0.1 --topo tree,2 --switch ovsk,protocols=OpenFlow13
4. Open Postman and do the following:
GET - http://127.0.0.1:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1

Set the required headers: Accept:Application/xml

Response: 404 Not Found
5. But I could see the available nodes at GET http://127.0.0.1:8080/controller/nb/v2/connectionmanager/nodes

Replicate the same steps for sudo mn --controller=remote,ip=127.0.0.1 --topo tree,2 --switch ovsk

Thanks!



 Comments   
Comment by Michal Rehak [ 17/Feb/14 ]

Hi Madhusudhan,
yes the url has been recently changed: datastore was replaced by config or oeprational. Depending if you want to access operational context (realtime devices, status) or user configured state (by default - empty on startup).

So please, try with operational - you should see connected switches.

http://127.0.0.1:8080/restconf/operational/opendaylight-inventory:nodes

Comment by Tony Tkacik [ 21/Feb/14 ]

Actually that http://127.0.0.1:8080/restconf/operational/opendaylight-inventory:nodes is present as of november, the old one was restconf-01 draft
which was deprecated by the authors of the draft.

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