[NETVIRT-474] L2GW: Null Pointer Exceptions in PhysicalSwitchUpdateCommand class Created: 12/Feb/17  Updated: 09/Jul/17  Resolved: 09/Jul/17

Status: Resolved
Project: netvirt
Component/s: General
Affects Version/s: Boron
Fix Version/s: None

Type: Bug
Reporter: ofer barber Assignee: suneel verma
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Duplicate
is duplicated by NETVIRT-463 L2GW Connection Utils does not see co... Resolved
External issue ID: 7779

 Description   

in a HW-Vtep setup,

We have encountered Null Pointer Exceptions in PhysicalSwitchUpdateCommand class, at setTunnels method.

The following line: pSwitch.setName(physicalSwitchAugmentation.getHwvtepNodeName().getValue()) throws an exception because getHwvtepNodeName() returns null.



 Comments   
Comment by ofer barber [ 12/Feb/17 ]

there is an open review
https://git.opendaylight.org/gerrit/#/c/51481/

Comment by Sam Hague [ 03/Apr/17 ]

https://git.opendaylight.org/gerrit/53554

Comment by Victor Pickard [ 11/Apr/17 ]

The patch below has been submitted to master branch, adds try/catch around transaction handling

https://git.opendaylight.org/gerrit/#/c/53555/

Comment by Victor Pickard [ 11/Apr/17 ]

The root cause of NPE still needs to be addressed.

Suneelu provided a good overview of how populating physical switch in db works. Refer to HWVTEP recording on 4/11/2017 for reference, and has some ideas on how to address this.

Comment by Sam Hague [ 09/Jul/17 ]

https://git.opendaylight.org/gerrit/53555

Generated at Wed Feb 07 20:21:39 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.