Remove dcorch-snmp
dcorch-snmp process/service is being removed from distributed cloud. Remove hook in fm. Change-Id: I74e82110b147680c8c9eb0c0f100b459cef4513a Story: 2007267 Task: 39193 Depends-On: https://review.opendev.org/#/c/715765 Signed-off-by: Gerry Kopec <gerry.kopec@windriver.com>
This commit is contained in:
parent
ce56ce7ea5
commit
2b08423378
|
@ -64,7 +64,3 @@ const std::string SCOPE = "::";
|
|||
const std::string STR_TYPE = " s ";
|
||||
const std::string INT_TYPE = " i ";
|
||||
const std::string OPTION_COMM = " -c ";
|
||||
|
||||
const std::string DC_COMM_STR = "dcorchAlarmAggregator";
|
||||
const std::string CONF_PATH_ENV = "SNMPCONFPATH=";
|
||||
const std::string CONF_DIR = "/etc/snmp";
|
||||
|
|
|
@ -125,14 +125,7 @@ static std::string format_trap_cmd(int type, SFmAlarmDataT &data,
|
|||
|
||||
objtype = mib + SCOPE + get_trap_objtype(type);
|
||||
|
||||
if (comm.compare(DC_COMM_STR) == 0){
|
||||
env = CONF_PATH_ENV + CONF_DIR + SEP;
|
||||
}
|
||||
else {
|
||||
env = "";
|
||||
}
|
||||
|
||||
cmd = env + TRAP_CMD + OPTION_COMM + comm + SEP + ip + SEP + s + objtype + SEP;
|
||||
cmd = TRAP_CMD + OPTION_COMM + comm + SEP + ip + SEP + s + objtype + SEP;
|
||||
std::string operation_type =get_trap_objtype(type);
|
||||
|
||||
if (operation_type == ALARM_CLEAR){
|
||||
|
|
Loading…
Reference in New Issue