Pass the appropriate PortModInput to portMod 06/5706/3
authorMoiz Raja <moraja@cisco.com>
Fri, 21 Mar 2014 07:15:06 +0000 (00:15 -0700)
committerMichal Rehak <mirehak@cisco.com>
Fri, 21 Mar 2014 13:16:23 +0000 (14:16 +0100)
commit9cbba4679011e887df92c4dec86959ae5e2495f5
treef811a32b3be74dab88c3339de25e5b40f2d0672d
parent84d8f8c03850c998ba1ae37b72050bf2c59f186f
Pass the appropriate PortModInput to portMod

In ModelDrivenSwitchImpl we were building an input but the built input was not passed to portMod. This had issues like missing Xid on the PortModInput
which caused NPE's downstream in the open flow java code

Also we were not correctly population ConfigV10, MaskV10 and FeaturesV10 on the PortModInput which caused NPE in the open flow java code when using
open flow 10

This commit fixes both of those problems. After this updatePort actually works.

Change-Id: Ie2548a36b2ba06f1d1ce0ccf833627bc7cbaf785
Signed-off-by: Moiz Raja <moraja@cisco.com>
Signed-off-by: Michal Rehak <mirehak@cisco.com>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/ModelDrivenSwitchImpl.java
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/PortConvertor.java