Summary: Support for CSI attribute change callback. [#1553]
Review request for Trac Ticket(s): #1553 
Peer Reviewer(s): AMF devs, Mathi.
Pull request to: <<LIST THE PERSON WITH PUSH ACCESS HERE>>
Affected branch(es): Default 
Development branch: <<IF ANY GIVE THE REPO URL>>

--------------------------------
Impacted area       Impact y/n
--------------------------------
 Docs                    n
 Build system            n
 RPM/packaging           n
 Configuration files     n
 Startup scripts         n
 SAF services            y
 OpenSAF services        n
 Core libraries          n
 Samples                 n
 Tests                   n
 Other                   n


Comments (indicate scope for each "y" above):
---------------------------------------------
README in the published patch contains the details for implementation
and changes.

changeset fdf0c43f3ec0675c2e8cba650a100b9b04218158
Author: [email protected]
Date:   Mon, 04 Apr 2016 12:53:35 +0530

        amf: add README for implementation details [#1553]

        Contains information related to:
        -details of implementation.
        -changes at AMFD.
        -changes at AMFND.
        -changes at AMFA.

changeset 7d07124f7ca02a4ccf935950e76af5cf6af91fcc
Author: [email protected]
Date:   Mon, 04 Apr 2016 12:54:47 +0530

        amf: update saAmf.h for new intialize API, callback and callback 
structure
        [#1553].

        Added in saAmf.h:
        -OsafCsiAttributeChangeCallbackT
        -SaAmfCallbacksT_5()
        -saAmfInitialize_5( SaAmfHandleT *amfHandle, const SaAmfCallbacksT_5
                        *amfCallbacks, SaVersionT *version);

        Details are in published README.

changeset 9290e19a47ba9dad6bda143c0f51882914d10089
Author: [email protected]
Date:   Mon, 04 Apr 2016 12:54:58 +0530

        amf: add new D2ND message and new ND to Agent message. [#1553]

        -New message structure to be used by AMFD to send COMPCSI related
        information to AMFND.
        -New internal callback message AVSV_AMF_CSI_ATTR_CHANGE_PARAM from 
AMFND to
        agent to support newly introduced callback.

changeset d65825d07bf87b17896b46aa1f9cf614df257376
Author: [email protected]
Date:   Mon, 04 Apr 2016 12:55:08 +0530

        amfd: send msg to AMFND upon modification of safCsiAttr [#1553]

        Contains: 1)Support for new attribute
        osafAmfCSICommunicateCsiAttributeChange in class SaAmfCSI. 2)Upon
        modification of CSI attribute value for a object of class 
SaAmfCSIAttribute,
        AMFD will send a message to AMFND with new list. For a NON PROXIED NPI
        component, message will not be sent if
        osafAmfCSICommunicateCsiAttributeChange is false. For such a component,
        change will come into effect only when its SI is locked and unlocked or
        other such ways. 3)AMFD now also maintains MDS install version of all 
AMFNDs
        in std::map<SaClmNodeIdT, MDS_SVC_PVT_SUB_PART_VER> nds_mds_ver_db. It 
will
        be updated whenever AMFD gets MDS_UP and MDS_DOWN for AMFND. Using this 
AMFD
        can decide whether message is meant for particular AMFND much before 
encode
        callback given by AMFND.

changeset 37339eb49a77ce0c935b36f8de61975f7f0895c3
Author: [email protected]
Date:   Mon, 04 Apr 2016 12:55:17 +0530

        amfnd: add support for csi attribute change callback at amfnd. [#1553]

        Contains changes related to: 1)Upong receving CSI attribute list, 
update own
        databae with modified information. If compoent has registered with new
        callback OsafCsiAttributeChangeCallbackT, then send callback
        OsafCsiAttributeChangeCallbackT to AMF agent. For Non Proxied NPI 
component
        run INSTANTIATE command. 2)AMFND now maintains MDS install version of 
AMF
        AGENTs in std::map<MDS_DEST, MDS_SVC_PVT_SUB_PART_VER> 
agent_mds_ver_db. It
        will be updated whenever AMFND gets MDS_UP and MDS_DOWN for AMF Agent.
        3)AMFND maintains now SAF version for each registered component. AMFND 
will
        get it from Agent thorugh existing component registeration message.

changeset 1caa15d94ee10896bde8df95019c5204d5a4742a
Author: [email protected]
Date:   Mon, 04 Apr 2016 12:55:25 +0530

        amfa: add support for csi attribute change callback at amfa. [#1553]

        1)Because of different AMF callback struture correponding to each of 
B.01.01
        B.04.01, introduced and internal callback structure OsafAmfCallbacksT. 
It
        consists of callback from each AMF version. Since callback for each
        intialization needs to be maintained internally in AVA_HDL_REC. With 
this
        internal structure, same handle can used interanlly for any 
initialization
        of AMF service. Also added utility function to copy callbacks from AMF
        callbacks structure to this internal one. AMF agent will use
        OsafAmfCallbacksT internally instead of SaAmfCallbacksT_<#x>.
        2)Implementation of saAmfInitialize_5() in ava_api.c. 3)Now 
saAmfRegister()
        also sends SAF version to AMFND.


Complete diffstat:
------------------
 osaf/libs/agents/saf/amfa/ava_api.c             |  148 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 osaf/libs/agents/saf/amfa/ava_hdl.c             |   39 +++++++++-----
 osaf/libs/agents/saf/amfa/ava_mds.c             |   54 ++++++++++++++++++++-
 osaf/libs/agents/saf/amfa/ava_op.c              |   61 +++++++++++++++++++++++
 osaf/libs/agents/saf/amfa/include/ava_cb.h      |    6 ++
 osaf/libs/agents/saf/amfa/include/ava_hdl.h     |   22 +++++++-
 osaf/libs/agents/saf/amfa/include/ava_mds.h     |    4 +-
 osaf/libs/common/amf/d2nedu.c                   |   19 +++++++-
 osaf/libs/common/amf/d2nmsg.c                   |   13 +++++
 osaf/libs/common/amf/include/amf_amfparam.h     |   10 +++
 osaf/libs/common/amf/include/amf_d2nmsg.h       |   28 ++++++++++
 osaf/libs/common/amf/include/amf_n2avamsg.h     |    3 +
 osaf/libs/common/amf/n2avamsg.c                 |   29 ++++++++++-
 osaf/libs/saf/include/saAmf.h                   |   24 +++++++++
 osaf/services/saf/amf/amfd/comp.cc              |   18 +++++++
 osaf/services/saf/amf/amfd/csi.cc               |   24 +++++++++
 osaf/services/saf/amf/amfd/csiattr.cc           |   20 +++++++
 osaf/services/saf/amf/amfd/include/comp.h       |    2 +
 osaf/services/saf/amf/amfd/include/csi.h        |    2 +
 osaf/services/saf/amf/amfd/include/node.h       |    2 +-
 osaf/services/saf/amf/amfd/include/util.h       |    2 +
 osaf/services/saf/amf/amfd/mds.cc               |    6 +-
 osaf/services/saf/amf/amfd/node.cc              |    3 +
 osaf/services/saf/amf/amfd/util.cc              |   97 
+++++++++++++++++++++++++++++++++++++-
 osaf/services/saf/amf/amfnd/amfnd.cc            |    2 +
 osaf/services/saf/amf/amfnd/cbq.cc              |   23 ++++++++-
 osaf/services/saf/amf/amfnd/comp.cc             |   44 +++++++++++++++++
 osaf/services/saf/amf/amfnd/compdb.cc           |    4 +
 osaf/services/saf/amf/amfnd/err.cc              |    4 +-
 osaf/services/saf/amf/amfnd/evt.cc              |    2 +
 osaf/services/saf/amf/amfnd/include/avnd_cb.h   |    2 +
 osaf/services/saf/amf/amfnd/include/avnd_comp.h |    2 +-
 osaf/services/saf/amf/amfnd/include/avnd_err.h  |    2 +
 osaf/services/saf/amf/amfnd/include/avnd_evt.h  |    1 +
 osaf/services/saf/amf/amfnd/include/avnd_mds.h  |    2 +-
 osaf/services/saf/amf/amfnd/include/avnd_su.h   |    2 +
 osaf/services/saf/amf/amfnd/main.cc             |    1 +
 osaf/services/saf/amf/amfnd/mds.cc              |   52 +++++++++++++++++++-
 osaf/services/saf/amf/amfnd/su.cc               |  142 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
 osaf/services/saf/amf/amfnd/util.cc             |   38 ++++++++++++++-
 osaf/services/saf/amf/config/amf_classes.xml    |    6 ++
 41 files changed, 928 insertions(+), 37 deletions(-)


Testing Commands:
-----------------
Please refer published README.

continuing with testing. Minor version update may require after testing.

Testing, Expected Results:
--------------------------
Please refer published README.


Conditions of Submission:
-------------------------
Ack from reviewers.
Preferablly wants to push in this release 5.0.

Arch      Built     Started    Linux distro
-------------------------------------------
mips        n          n
mips64      n          n
x86         n          n
x86_64      y          y
powerpc     n          n
powerpc64   n          n


Reviewer Checklist:
-------------------
[Submitters: make sure that your review doesn't trigger any checkmarks!]


Your checkin has not passed review because (see checked entries):

___ Your RR template is generally incomplete; it has too many blank entries
    that need proper data filled in.

___ You have failed to nominate the proper persons for review and push.

___ Your patches do not have proper short+long header

___ You have grammar/spelling in your header that is unacceptable.

___ You have exceeded a sensible line length in your headers/comments/text.

___ You have failed to put in a proper Trac Ticket # into your commits.

___ You have incorrectly put/left internal data in your comments/files
    (i.e. internal bug tracking tool IDs, product names etc)

___ You have not given any evidence of testing beyond basic build tests.
    Demonstrate some level of runtime or other sanity testing.

___ You have ^M present in some of your files. These have to be removed.

___ You have needlessly changed whitespace or added whitespace crimes
    like trailing spaces, or spaces before tabs.

___ You have mixed real technical changes with whitespace and other
    cosmetic code cleanup changes. These have to be separate commits.

___ You need to refactor your submission into logical chunks; there is
    too much content into a single commit.

___ You have extraneous garbage in your review (merge commits etc)

___ You have giant attachments which should never have been sent;
    Instead you should place your content in a public tree to be pulled.

___ You have too many commits attached to an e-mail; resend as threaded
    commits, or place in a public tree for a pull.

___ You have resent this content multiple times without a clear indication
    of what has changed between each re-send.

___ You have failed to adequately and individually address all of the
    comments and change requests that were proposed in the initial review.

___ You have a misconfigured ~/.hgrc file (i.e. username, email etc)

___ Your computer have a badly configured date and time; confusing the
    the threaded patch review.

___ Your changes affect IPC mechanism, and you don't present any results
    for in-service upgradability test.

___ Your changes affect user manual and documentation, your patch series
    do not contain the patch that updates the Doxygen manual.


------------------------------------------------------------------------------
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to