[NEUTRON-107] GET interface from router and add interface to router not working Created: 28/Jan/16  Updated: 03/Jul/18  Resolved: 29/Jan/16

Status: Verified
Project: neutron
Component/s: neutron-spi
Affects Version/s: stable/lithium
Fix Version/s: None

Type: Bug
Reporter: RajaRajan Manickam Assignee: Vishal Thapar
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 5124

 Description   

Description:

GET Interface and "add interface to router" not working.

I have created a router with below configuration. Router got created successfully.
--------------------------------------------------------------------
http://<controller IP>:8080/restconf/config/neutron:neutron/routers/
{"router": {
"name": "RRRRRR1",
"interfaces": [

{ "port-id": "c8dd830f-7b97-40f0-a7b6-21cd5aff502e", "subnet-id": "9b09f1a7-250f-4562-8093-e6018aeceaf6", "uuid": "c8ff831f-7b97-40f0-a7b6-21cd5aff502d", "tenant-id": "de0a7495-05c4-4be0-b796-1412835c6820" }

,
],
"uuid": "5971a821-f8f0-4771-ae4c-7f132ba5e77c",
"tenant-id": "de0a7495-05c4-4be0-b796-1412835c6820",
"admin-state-up": true
}
}
-----------------------------------------------------------------------

But, when i try to get list of interface details and adding new interface to existing router is not working.

To GET available Interfaces i used below API.

http://<controller IP>:8080/restconf/config/neutron:neutron/routers/router/5971a821-f8f0-4771-ae4c-7f132ba5e77c/interfaces/
Output is :
{
"errors": {
"error": [

{ "error-type": "application", "error-tag": "data-missing", "error-message": "Request could not be completed because the relevant data model content does not exist " }

]
}
}

To add interface i used below API.
http://10.183.254.195:8080/restconf/config/neutron:neutron/routers/router/5971a821-f8f0-4771-ae4c-7f132ba5e77c/interfaces/http://10.183.254.195:8080/restconf/config/neutron:neutron/routers/router/5971a821-f8f0-4771-ae4c-7f132ba5e77c/interfaces/
{
"subnet-id": "9b09f1a7-250f-4562-8093-e6018aeceaf6",
"tenant-id": "de0a7495-05c4-4be0-b796-1412835c6820",
"port-id": "c8dd830f-7b97-40f0-a7b6-21cd5aff502e",
"uuid": "c8ff831f-7b97-40f0-a7b6-21cd5aff502d"
}

Output Observed:
{
"errors": {
"error": [

{ "error-type": "protocol", "error-tag": "malformed-message", "error-message": "Error parsing input: Schema node with name subnet-id wasn't found under (urn:opendaylight:neutron?revision=2015-03-25)router." }

]
}
}



 Comments   
Comment by Isaku Yamahata [ 28/Jan/16 ]

Can you provide neutron operation in addition to ODL?

Comment by Vishal Thapar [ 29/Jan/16 ]

The URI used is not correct. Port for restconf is 8181 not 8080 unless changed from default.

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