Ask Your Question

what is difference between config and operational REST API's

asked 2014-09-12 03:51:59 -0700

rmohamed gravatar image


Could you please let me know what is difference between config and operational REST API's. To construct topology as like AD-SAL what REST API do i need to call in MD-SAL?

Thanks, Riyaz

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-20 18:15:22 -0700

ecelgp gravatar image

MD-SAL datastore is divided in config and operational. The first one is filled with the configuration information that users push for example through REST API. The second is the operational information that comes from the system and you normally read to understand if your configuration has been succesfully pushed into a device for example.

Another example to understand the difference between config and operational: if you get a regular ethernet switch, you normally configure vlans, the ports that belong to the vlans, the vlan tag, etc... all this information goes to the switch configuration which is what you have in the OpenDaylight config datastore. On the other hand, after configuring you switch, you would like to check the system status by issuing some show commands for vlan, port, etc.. this system information is what you have in the OpenDaylight operational datastore.

In the case of custom topologies (if this is your question), you have to use the config API to define your topology:

PUT http://localhost:8080/restconf/config/network-topology:network-topology/topology/<id></id>

However if your topology does not match a real topology learned by the system (via LLDP for example), you will get empty operational information:

GET http://localhost:8080/restconf/operational/network-topology:network-topology/topology/<id></id>

edit flag offensive delete publish link more


If I make a configuration change to config, does it populate to operational?

runamuck ( 2015-06-29 13:14:00 -0700 )edit

How do we copy the config database to the operational?

runamuck ( 2015-06-30 11:35:13 -0700 )edit

runamuck, the operatoinal store will reflect the *runtime* of the network. you don't configure it, per se. If a switch has a flow, then the operational store will reflect that. It is not even neccessary for that flow to be present in the config store. hope it helps.

jamoluhrsen ( 2015-07-01 11:17:26 -0700 )edit

How do I use the rest API to get the flow to the switch? Is that even possible?

runamuck ( 2015-07-01 11:40:22 -0700 )edit

once the switch is connected, you can push flows via restconf. this wiki page should help with that:

jamoluhrsen ( 2015-07-01 12:29:38 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-09-12 03:51:59 -0700

Seen: 1,219 times

Last updated: Sep 20 '14