QoS Schema - fix type of QoS type 00/31400/2
authorEric Multanen <eric.w.multanen@intel.com>
Tue, 15 Dec 2015 22:32:11 +0000 (14:32 -0800)
committerEric Multanen <eric.w.multanen@intel.com>
Tue, 5 Jan 2016 09:11:20 +0000 (01:11 -0800)
commitfe755734e89e28ebe22ed5ad783d303e7d4ae08e
treec025487dbe34bddde9e79eb098e274fe257a9a57
parent9484b0d2721fdd95b9dea97f02db47dcf7580fd5
QoS Schema - fix type of QoS type

It looks like the 'type' field in the QoS table schema
was incorrectly coded in the Qos.java schema file
to be a Set<String>.
In the ovs schema, the type field for Qos is defined
as a simple string:

        "type": {
         "type": "string"},

Other string fields in the ovs schema that are
defined in the <table>.java files as Set<String>
appear in the schema as follows (for example,
ovs_version from Open_vSwitch table):

       "ovs_version": {
         "type": {"key": {"type": "string"},
                  "min": 0, "max": 1}},

With the QoS 'type' field defined as Set<String>,
the code gets an exception trying to cast
a String to a Set<String> when trying to get
the type out of a table update.  After this patch
is applied, the error is resolved.

Change-Id: Ibb42db03e71d8f1d96329b5942e7501069af20cb
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
library/it/src/test/java/org/opendaylight/ovsdb/integrationtest/schema/openvswitch/OpenVSwitchIT.java
schemas/openvswitch/src/main/java/org/opendaylight/ovsdb/schema/openvswitch/Qos.java