Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

How can I set network-topology with RESTCONF?

I'm attempting to change the network topology with the RESTCONF API using the URL root:

http://localhost:8181/restconf/config/network-topology:network-topology/

However, at the moment even a plain GET on this base URL returns an error:

{"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 "
}]}}

The methods (GET, PUT, DELETE, POST) are defined and exposed in the Yang UI and the API explorer. Are they supposed to be able to change the network configuration or are they meant to serve a different purpose?

Fei Yeh

Northwestern University

How can I set network-topology with RESTCONF?

I'm attempting to change the network topology with the RESTCONF API using the URL root:

http://localhost:8181/restconf/config/network-topology:network-topology/

However, at the moment even a plain GET on this base URL returns an error:

{"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 "
}]}}

The methods (GET, PUT, DELETE, POST) are defined and exposed in the Yang UI and the API explorer. Are they supposed to be able to change the network configuration or are they meant to serve a different purpose?

[edit 1] In Reply to jsmoeller's comment:

I have tried connecting both a real switch (Pica8 3290 running OVS) and mininet OvS, and used the YangUI within Dlux. In all cases, this URL (restconf/config/network-topology:network-topology) returns this error.

A different URL (/restconf/operational/network-topology:network-topology) has only the GET method and works fine as ready-only topology.

Fei Yeh

Northwestern University

How can I set network-topology with RESTCONF?

I'm attempting to change the network topology with the RESTCONF API using the URL root:

http://localhost:8181/restconf/config/network-topology:network-topology/

However, at the moment even a plain GET on this base URL returns an error:

{"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 "
}]}}

The methods (GET, PUT, DELETE, POST) are defined and exposed in the Yang UI and the API explorer. Are they supposed to be able to change the network configuration or are they meant to serve a different purpose?

[edit 1] In Reply to jsmoeller's comment:

I have tried connecting both a real switch (Pica8 3290 running OVS) and mininet OvS, and used the YangUI within Dlux. In all cases, this URL (restconf/config/network-topology:network-topology) returns this error.

A different URL (/restconf/operational/network-topology:network-topology) has only the GET method and works fine as ready-only topology.

[edit 2] Just wanted to clarify that I'm trying to manipulate the topology entirely within and only within OpenDayLight, independent of the initial network topology that ODL first received/constructed. Is that possible?

Fei Yeh

Northwestern University