Ack, tested/Regards HansN On 05/23/14 08:43, nagendr...@oracle.com wrote: > 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; > } >
------------------------------------------------------------------------------ The best possible search technologies are now affordable for all companies. Download your FREE open source Enterprise Search Engine today! Our experts will assist you in its installation for $59/mo, no commitment. Test it for FREE on our Cloud platform anytime! http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel