Ignore remove assignment for NPI component if
node is in shutdown state.
---
src/amf/amfnd/susm.cc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/amf/amfnd/susm.cc b/src/amf/amfnd/susm.cc
index 86811f1e4..c22fce55b 100644
--- a/src/amf/amfnd/susm.cc
+++ b/src/amf/amfnd/susm.cc
@@ -3221,6 +3221,11 @@ uint32_t avnd_su_pres_terming_compuninst_hdler(AVND_CB
*cb, AVND_SU *su,
osafassert(comp != nullptr);
curr_csi = m_AVND_CSI_REC_FROM_COMP_DLL_NODE_GET(
m_NCS_DBLIST_FIND_FIRST(&comp->csi_list));
+ // Ignore in shutdown state
+ if ((cb->term_state == AVND_TERM_STATE_OPENSAF_SHUTDOWN_STARTED) &&
+ (curr_csi == nullptr)) {
+ goto done;
+ }
osafassert(curr_csi);
/* mark the csi state assigned/removed */
--
2.17.1
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel