BUG 3548 - LLDP speaker doesn't start send LLDP packet on port up. 82/22882/1
authorJozef Gloncak <jgloncak@cisco.com>
Thu, 18 Jun 2015 12:10:52 +0000 (14:10 +0200)
committerJozef Gloncak <jgloncak@cisco.com>
Thu, 18 Jun 2015 13:01:23 +0000 (15:01 +0200)
commit5865c58f43808e730fdb9dc310741663c304112d
treeee6a985f19dcad74be92a93a369f708a33be712d
parentd0ab880fffcf27d8d391721b4482bc952473f5a0
BUG 3548 - LLDP speaker doesn't start send LLDP packet on port up.

Listener on changes on changes on State subtree was added.

If instance of FlowCapableNodeConnector with port down is received
in NodeConnectorInventoryEventTranslator then it is stored to local map.
When event port up event is received then stored instance is looked up
in map, state part is replaced (with port up information) and it is sent
to LLDP.

Change-Id: Ic989a88c06b2e266c63375bd19e3ed2c2b4d4c2d
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
applications/lldp-speaker/src/main/java/org/opendaylight/openflowplugin/applications/lldpspeaker/NodeConnectorInventoryEventTranslator.java
applications/lldp-speaker/src/test/java/org/opendaylight/openflowplugin/applications/lldpspeaker/NodeConnectorInventoryEventTranslatorTest.java