Solaroi Zeng
Solaroi Zeng

Reputation: 51

Does OpenDaylight RESTCONF support HTTP PUT or POST methods?

I am using opendaylight(oxygen) as a controller connecting to openvswitch(2.9.0) on ubuntu(18.40).

I was trying to add flow to OVS by DLUX-Yangman, but I found that there is only a Get method to choose, no Put, Post, or Delete.

Currently, I have only installed 3 features: odl-restconf odl-dluxapps-applications odl-l2switch-switch-ui

When I use postman to put flow to controller:

http://192.168.68.129:8181/restconf/operational/opendaylight-inventory:nodes/node/{id}/flow-node-inventory:table/{id}/flow/{id}

I always get the returned status: 405 methods not allowed.

Upvotes: 0

Views: 442

Answers (1)

Tom Pantelis
Tom Pantelis

Reputation: 1349

You are trying to write to the operational data store - you cannot do that via restconf - operational data is read-only. Only the config data store can be updated.

Upvotes: 0

Related Questions