Fix reading of EntityOwnerSelectionStrategy 92/33492/4
authorMoiz Raja <moraja@cisco.com>
Thu, 7 Jan 2016 22:07:02 +0000 (14:07 -0800)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 4 Feb 2016 18:49:10 +0000 (18:49 +0000)
commit7030ae1a3c8fcc19e2b88d874a18faf73496682e
tree89ae2c8bed9fd5b1fe88f0b541ccebdda9955f9f
parentd066fa07902c7fe2c137616f18dac81fccefe6af
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>
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