Chaper 1.
Md-sal cannot provide doc. of REST APIs, because the API is generated at runtime based on YANG models. then how to address this complaint?
Since that REST APIs is designed on Restconf protocol, a OSDI bundle named Restconf API Explorer[1] can be deploy Ed in ODL to generate Doc. Based on Swagger Specification[2]. You can access it by
Http://localhost:8080/apidoc/explorer
or in Karaf
http://localhost:8181/apidoc/explorer/index.html
.... The above tips is what is the ODL Wiki [3] said on Md-sal ' s restconf API. I tried this URL and found that some northbound APIs is absent.
the webpage [4] shows some northbound APIs of Md-sal, however I can not open the URL as the certification of the W EB is not registered yet.
When i Google the oepndaylight REST APIs, I get [5] and full of nonexisting links.
[1] https://datatracker.ietf.org/doc/draft-bierman-netconf-restconf/
[2] https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md
[3] https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Restconf_API_Explorer
[4] https://wiki.opendaylight.org/view/OpenDaylight_Controller:RESTCONF_Northbound_APIs
[5] https://wiki.opendaylight.org/view/OpenDaylight_Controller:REST_Reference_and_Authentication
Chapter 2.
After your know the ODL WS REST API, you can understand the following works easily!
1. This page describes examples the Configure VTN Manager for Service Chaining.
opendaylight Virtual Tenant Network (VTN): How to Configure Service Function Chaining using VTN
2. This page describes the various mininet Scripts that is used in examples for VTN usage.
opendaylight Virtual Tenant Network (VTN): Scripts:mininet
Opendaylight Web Service REST API