osaf/services/saf/avsv/avd/avd_sg.cc | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
Patch helps to validate/modify saAmfSGAutoRepair in SG even if its saAmfSGAdminState is SA_AMF_ADMIN_LOCKED or SA_AMF_ADMIN_LOCKED_INSTANTIATION diff --git a/osaf/services/saf/avsv/avd/avd_sg.cc b/osaf/services/saf/avsv/avd/avd_sg.cc --- a/osaf/services/saf/avsv/avd/avd_sg.cc +++ b/osaf/services/saf/avsv/avd/avd_sg.cc @@ -551,6 +551,13 @@ static SaAisErrorT ccb_completed_modify_ } else if (!strcmp(attribute->attrName, "saAmfSGCompRestartMax")) { } else if (!strcmp(attribute->attrName, "saAmfSGSuRestartProb")) { } else if (!strcmp(attribute->attrName, "saAmfSGSuRestartMax")) { + } else if (!strcmp(attribute->attrName, "saAmfSGAutoRepair")) { + uint32_t sg_autorepair = *((SaUint32T *)attribute->attrValues[0]); + if (sg_autorepair > true ) { + LOG_ER("Invalid saAmfSGAutoRepair SG:'%s'", avd_sg->name.value); + rc = SA_AIS_ERR_BAD_OPERATION; + goto done; + } } else { osafassert(0); } ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel