# Revision history [back]

### 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