rrmPolicy[policyNum].rRMPolicyMemberList[memberNum].mcc[0] = std::stoi(val.substr(0,1).c_str(),0,10);
rrmPolicy[policyNum].rRMPolicyMemberList[memberNum].mcc[1] = std::stoi(val.substr(1,1).c_str(),0,10);
rrmPolicy[policyNum].rRMPolicyMemberList[memberNum].mcc[2] = std::stoi(val.substr(2,1).c_str(),0,10);
- //strncpy((char *)rrmPolicy[policyNum].rRMPolicyMemberList[memberNum].mcc, \
- val.c_str(), MCC_LEN);
O1_LOG("\nO1 RrmPolicyCb::updateParams rrmPolicy[%d]."
- "rRMPolicyMemberList[%d].mcc[2] = %c", policyNum, memberNum, \
+ "rRMPolicyMemberList[%d].mcc[2] = %d", policyNum, memberNum, \
rrmPolicy[policyNum].rRMPolicyMemberList[memberNum].mcc[2]);
}
else if(leafNode == "mnc")
'\0', MNC_LEN);
rrmPolicy[policyNum].rRMPolicyMemberList[memberNum].mnc[0] = std::stoi(val.substr(0,1).c_str(),0,10);
rrmPolicy[policyNum].rRMPolicyMemberList[memberNum].mnc[1] = std::stoi(val.substr(1,1).c_str(),0,10);
- rrmPolicy[policyNum].rRMPolicyMemberList[memberNum].mnc[2] = std::stoi(val.substr(2,1).c_str(),0,10);
- //strncpy((char *) rrmPolicy[policyNum].rRMPolicyMemberList[memberNum].mnc, \
- val.c_str(), MNC_LEN);
- O1_LOG("\nO1 RrmPolicyCb::updateParams rrmPolicy[%d]."
- "rRMPolicyMemberList[%d].mnc[1] = %c", policyNum, memberNum, \
+ if(strlen(val.c_str())>2)
+ {
+ rrmPolicy[policyNum].rRMPolicyMemberList[memberNum].mnc[2] = std::stoi(val.substr(2,1).c_str(),0,10);
+ }
+ O1_LOG("\nO1 RrmPolicyCb::updateParams rrmPolicy[%d]."
+ "rRMPolicyMemberList[%d].mnc[1] = %d", policyNum, memberNum, \
rrmPolicy[policyNum].rRMPolicyMemberList[memberNum].mnc[1]);
}
else if(leafNode == "sst")
void *private_data)
{
char change_path[MAX_LEN];
+ policyNum = 0;
+ policyIndex = 0;
+ policyMemberListNum =0;
try {
O1_LOG("\nO1 RrmPolicyCb : Notification %s", NetconfUtils::evToStr(event));
}
catch( const std::exception& e ) {
O1_LOG("\nO1 RrmPolicyCb exception : %s\n", e.what());
+ return SR_ERR_INTERNAL;
}
return SR_ERR_OK;
}