Check size of MAC vector before reading the element
While clearing the neutron router, Agent some times receives NULL object
without any properties. As this is not a delete operation
ServiceInstance attempts to calcualte the properties of the instance by
traversing the node grpah. When VMI is seen, it attempts to read the mac
address which as such is not preset leading to crash.
As a fix, the mac address is read only if the Mac vector has some
element in it.
Reviewed: https:/ /review. opencontrail. org/12711 github. org/Juniper/ contrail- controller/ commit/ b11d74cdec0a189 687394204d16676 9f4674122c
Committed: http://
Submitter: Zuul
Branch: R2.20
commit b11d74cdec0a189 687394204d16676 9f4674122c
Author: Divakar <email address hidden>
Date: Wed Jul 29 21:56:29 2015 +0530
Check size of MAC vector before reading the element
While clearing the neutron router, Agent some times receives NULL object
without any properties. As this is not a delete operation
ServiceInstance attempts to calcualte the properties of the instance by
traversing the node grpah. When VMI is seen, it attempts to read the mac
address which as such is not preset leading to crash.
As a fix, the mac address is read only if the Mac vector has some
element in it.
Change-Id: Idd2afde67f5672 8408e5c553d772f 30d00a246af
closes-bug: #1474272