Issue with ODL initiated connection to OVSDB


Santosh
 

Hi All ,

I am using ODL boron release (0.5.0) . 

I am using JSON structure mentioned as below at

HTTP PUT:

http://<controller-ip>:8181/restconf/config/network-topology:network-topology/topology/ovsdb:1/node/ovsdb:%2F%2FHOST1

Body:

{
  "network-topology:node": [
    {
      "node-id": "ovsdb://HOST1",
      "connection-info": {
        "ovsdb:remote-port": "6640",
        "ovsdb:remote-ip": "<ovs-host-ip>"
      }
    }
  ]
}



However ODL returns below error message  :

{"errors":{"error":[{"error-type":"protocol","error-tag":"malformed-message","error-message":"Error parsing input: Schema for node with name node and namespace urn:TBD:params:xml:ns:yang:network-topology doesn't exist.","error-info":"java.lang.IllegalStateException: Schema for node with name node and namespace urn:TBD:params:xml:ns:yang:network-topology doesn't exist.\n\tat

Could anybody help with exact JSON for the same.

Note :  Switch initiated OVSDB connection works . 

Thanks
Santosh


Jamo Luhrsen <jluhrsen@...>
 

Santosh,

here is an example of this working in CSIT:

https://logs.opendaylight.org/releng/jenkins092/ovsdb-csit-1node-upstream-southbound-only-carbon/9/archives/log.html.gz#s1-s4-t2-k7

the only difference I can see in the data/uri from yours is "ovsdb:connection-info" vs just
"connection-info".

not sure if it helps...

JamO

On 03/21/2017 01:31 AM, Santosh Singh wrote:
Hi All ,

I am using ODL boron release (0.5.0) .

I am using JSON structure mentioned as below at

HTTP PUT:

http://<controller-ip>:8181/restconf/config/network-topology:network-topology/topology/ovsdb:1/node/ovsdb:%2F%2FHOST1

Body:

{ "network-topology:node": [ { "node-id": "ovsdb://HOST1", "connection-info": { "ovsdb:remote-port": "6640",
"ovsdb:remote-ip": "<ovs-host-ip>" } } ] }



http://docs.opendaylight.org/en/stable-boron/user-guide/ovsdb-user-guide.html

However ODL returns below error message :

{"errors":{"error":[{"error-type":"protocol","error-tag":"malformed-message","error-message":"Error parsing input: Schema for
node with name node and namespace urn:TBD:params:xml:ns:yang:network-topology doesn't
exist.","error-info":"java.lang.IllegalStateException: Schema for node with name node and namespace
urn:TBD:params:xml:ns:yang:network-topology doesn't exist.\n\tat

Could anybody help with exact JSON for the same.

Note : Switch initiated OVSDB connection works .

Thanks
Santosh


_______________________________________________
ovsdb-dev mailing list
ovsdb-dev@...
https://lists.opendaylight.org/mailman/listinfo/ovsdb-dev