1

Steps:

  1. feature:install odl-ovsdb-southbound-impl-ui
curl -u admin:admin http://localhost:8181/restconf/config/network-topology:network-topology/topology/ovsdb:1/

or

curl -u admin:admin http://localhost:8181/restconf/operational/network-topology:network-topology/topology/ovsdb:1/

step2 curl return '404 not found'

curl results should be

{
  "topology": [
    {
      "topology-id": "ovsdb:1"
    }
  ]
}

reference: https://docs.opendaylight.org/en/stable-nitrogen/user-guide/ovsdb-user-guide.html#ovsdb-southbound-plugin

Bruce
  • 11
  • 2

1 Answers1

1

The Chlorine release of opendaylight has removed support for the old version of RESTCONF based on draft-bierman-netconf-restconf-02. See this reference for more details:

Old RESTCONF northbound scheduled for removal

To use the newer RFC-8040 RESTCONF version, some changes to the URL are necessary. See this link for more details:

https://docs.opendaylight.org/projects/netconf/en/latest/user-guide.html

After some experimentation, I was able to get the following URL to work:

curl -u admin:admin http://localhost:8181/rests/data/network-topology:network-topology/topology=ovsdb:1?content=config

{"network-topology:topology":[{"topology-id":"ovsdb:1"}]}
learner
  • 11
  • 1