osaf/services/saf/amf/amfd/node.cc |  13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)


When Act controller is stopped, newly act controller is not sending node oper 
state
disable notification. This is because of marking node oper state disable
first in avd_mds_avnd_down_evh at standby controller and then calling
avd_node_oper_state_set() from avd_node_failover. In
avd_node_oper_state_set, since oper state remain disable, the function only
update rt attributes and donot send notification.
Amf is checking whether node is absent and oper state is down and
this way it deduces that the failover has happened and it need to send
notification.

diff --git a/osaf/services/saf/amf/amfd/node.cc 
b/osaf/services/saf/amf/amfd/node.cc
--- a/osaf/services/saf/amf/amfd/node.cc
+++ b/osaf/services/saf/amf/amfd/node.cc
@@ -398,6 +398,19 @@ void avd_node_oper_state_set(AVD_AVND *n
                 */
                avd_saImmOiRtObjectUpdate(&node->name, "saAmfNodeOperState",
                        SA_IMM_ATTR_SAUINT32T, &node->saAmfNodeOperState);
+
+               /* Send notification for node oper state down. It is set to 
+                  DISABLE in avd_mds_avnd_down_evh and again
+                  avd_node_oper_state_set is called from avd_node_mark_absent.
+                  Since the oper state is the same when called from
+                  avd_node_mark_absent, we need to send notification. */
+               if ((node->saAmfNodeOperState == SA_AMF_OPERATIONAL_DISABLED) &&
+                               (node->node_state == AVD_AVND_STATE_ABSENT))
+                       avd_send_oper_chg_ntf(&node->name,
+                                       SA_AMF_NTFID_NODE_OP_STATE,
+                                       SA_AMF_OPERATIONAL_ENABLED,
+                                       node->saAmfNodeOperState);
+
                return;
        }
        

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to