Fix reading of EntityOwnerSelectionStrategy 69/36069/1
authorMoiz Raja <moraja@cisco.com>
Thu, 7 Jan 2016 22:07:02 +0000 (14:07 -0800)
committerMoiz Raja <moraja@cisco.com>
Thu, 10 Mar 2016 19:39:00 +0000 (19:39 +0000)
commit99d89fda29e695e8fe6fca48f8e1694c710c5af7
treeb9590f9d1956f62404184bd1dca6a34f03c968f6
parent53784b53e87c5a71b4a6cf1abae40e3289f1d4b5
Fix reading of EntityOwnerSelectionStrategy

1. The pid used for reading a config admin file should not have hyphens
   so replaced them with dots
2. The config admin returns properties that are not from the file
   so we need a way to ignore them. I specifically look for the
   a prefix of "entity.type." and ignore the other properties

Change-Id: I26a66176583ec39cbdb78fec749022429218e005
Signed-off-by: Moiz Raja <moraja@cisco.com>
(cherry picked from commit 7030ae1a3c8fcc19e2b88d874a18faf73496682e)
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/EntityOwnershipShard.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/selectionstrategy/EntityOwnerSelectionStrategyConfigReader.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/entityownership/selectionstrategy/EntityOwnerSelectionStrategyConfigReaderTest.java