ack, code review only/Thanks HansN

On 09/01/2017 05:54 AM, Gary Lee wrote:
---
  src/amf/amfd/sg.cc | 5 +++++
  src/amf/amfd/su.cc | 6 ++++++
  2 files changed, 11 insertions(+)

diff --git a/src/amf/amfd/sg.cc b/src/amf/amfd/sg.cc
index 8f3590190..98cccc6bb 100644
--- a/src/amf/amfd/sg.cc
+++ b/src/amf/amfd/sg.cc
@@ -1725,6 +1725,11 @@ void avd_sg_add_su(AVD_SU *su) {
              });
avd_verify_equal_ranked_su(su->sg_of_su);
+
+  // update any affected SI assignment state (if saAmfSGNumPrefAssignedSUs==0)
+  for (const auto &si : su->sg_of_su->list_of_si) {
+    si->update_ass_state();
+  }
  }
void avd_sg_constructor(void) {
diff --git a/src/amf/amfd/su.cc b/src/amf/amfd/su.cc
index b091a5bfb..3726a71fb 100644
--- a/src/amf/amfd/su.cc
+++ b/src/amf/amfd/su.cc
@@ -2103,6 +2103,12 @@ void su_ccb_apply_delete_hdlr(struct 
CcbUtilOperationData *opdata) {
    }     /*if (AVD_SG_FSM_STABLE == sg->sg_fsm_state) */
done:
+
+  // update any affected SI assignment state (if saAmfSGNumPrefAssignedSUs==0)
+  for (const auto &si : sg->list_of_si) {
+    si->update_ass_state();
+  }
+
    TRACE_LEAVE();
  }


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to