Use a utility function for key-value to map conversions 09/35409/2
authorStephen Kitt <skitt@redhat.com>
Thu, 25 Feb 2016 15:57:26 +0000 (16:57 +0100)
committerStephen Kitt <skitt@redhat.com>
Wed, 9 Mar 2016 09:23:25 +0000 (10:23 +0100)
commit316d5824042bcb4b86937979d1b7f24149925455
treee9c7f4ca510a7fbe87aabb3e1256fa832745f8d4
parent91d3c4ad767eba33cc8004f7536ec405b610c587
Use a utility function for key-value to map conversions

YangUtils::convertKeyValueListToMap() reproduces the behaviour
expected when converting a list of YANG key values to a map: it checks
that all the keys and values are non-null, and converts them to
strings using the appropriate methods in each YANG type.

This patch can't be back-ported to Beryllium since it uses Java 8
constructs.

Change-Id: Iaeb751ca552caf6b8f5a6d5a6e506e5d2aa4e63f
Signed-off-by: Stephen Kitt <skitt@redhat.com>
12 files changed:
southbound/southbound-features/src/main/features/features.xml
southbound/southbound-impl/pom.xml
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionInstance.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/BridgeUpdateCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/OvsdbNodeUpdateCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QosUpdateCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QueueUpdateCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/TerminationPointCreateCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/TerminationPointUpdateCommand.java
utils/pom.xml
utils/yang-utils/pom.xml [new file with mode: 0644]
utils/yang-utils/src/main/java/org/opendaylight/ovsdb/utils/yang/YangUtils.java [new file with mode: 0644]