Failed to update qos when port cannot find network 94/85494/2
authorNing Zhang <zhangninglc@inspur.com>
Fri, 1 Nov 2019 15:10:33 +0000 (23:10 +0800)
committerChetan Arakere Gowdru <chetan.arakere@altencalsoftlabs.com>
Tue, 12 Nov 2019 10:35:58 +0000 (10:35 +0000)
commit168fa8720db71cf538cfb1608dd822bf1ddf2797
treecf2ba9a6d14e7d7f623e7b53dc2d22ab7cc921cc
parentd7bea15922d07ce413661338f80e6d93d74bfed3
Failed to update qos when port cannot find network

Issue Description:
Could not get network by port's network id, so we cannot use the network to get qos.
java.lang.NullPointerException: null
        at org.opendaylight.netvirt.qosservice.QosNeutronUtils.getQosPolicy(QosNeutronUtils.java:811)
        at org.opendaylight.netvirt.qosservice.QosNeutronPortChangeListener.checkForPortIpAddressUpdate(QosNeutronPortChangeListener.java:123)

Signed-off-by: Ning Zhang <zhangninglc@inspur.com>
Change-Id: Id3df070ebbdfd90952e9cc8b5d021803a2911dd7
qosservice/impl/src/main/java/org/opendaylight/netvirt/qosservice/QosNeutronPortChangeListener.java
qosservice/impl/src/main/java/org/opendaylight/netvirt/qosservice/QosNeutronUtils.java