LN0739_FM_FR12: support for options to dynamically create the AlarmDefinitions
- provided options to dynamically configure the AlarmDefinitions
- alarm manager to suppress the alarms if specific problem is unknown to it
  (already existign functionality with static AlarmDefinitions ).
- provided CLI interface to define alarm definitions
- provided GET and DELETE interface for alarm definitions
- corrected the run.sh script
- corrections for build failure

Change-Id: I78871f429dda255cd5b56ef69d65ca687c933c93
Signed-off-by: vipin <vipin.mavila@nokia.com>
diff --git a/manager/cmd/manager.go b/manager/cmd/manager.go
index 9a42187..397cd3e 100755
--- a/manager/cmd/manager.go
+++ b/manager/cmd/manager.go
@@ -225,12 +225,17 @@
 	app.Resource.InjectStatusCb(a.StatusCB)
 	app.AddConfigChangeListener(a.ConfigChangeCB)
 
+	alarm.RICAlarmDefinitions = make(map[int]*alarm.AlarmDefinition)
+
 	app.Resource.InjectRoute("/ric/v1/alarms", a.RaiseAlarm, "POST")
 	app.Resource.InjectRoute("/ric/v1/alarms", a.ClearAlarm, "DELETE")
 	app.Resource.InjectRoute("/ric/v1/alarms/active", a.GetActiveAlarms, "GET")
 	app.Resource.InjectRoute("/ric/v1/alarms/history", a.GetAlarmHistory, "GET")
 	app.Resource.InjectRoute("/ric/v1/alarms/config", a.SetAlarmConfig, "POST")
 	app.Resource.InjectRoute("/ric/v1/alarms/config", a.GetAlarmConfig, "GET")
+	app.Resource.InjectRoute("/ric/v1/alarms/define", a.SetAlarmDefinition, "POST")
+	app.Resource.InjectRoute("/ric/v1/alarms/define/{alarmId}", a.DeleteAlarmDefinition, "DELETE")
+	app.Resource.InjectRoute("/ric/v1/alarms/define", a.GetAlarmDefinition, "GET")
 
 	// Start background timer for re-raising alerts
 	a.postClear = sdlcheck