Request to respond to this query and provide sample code.
We are trying to implement RFC 8632 alarm-notification using ietf-alarms.yang
While filling the alarm fields (sample below ) , we could see that resource got filled but alarm-type-id is not filled.
Hi Vassilev,
Request to respond to this query and provide sample code.
We are trying to implement RFC 8632 alarm-notification using ietf-alarms.yang While filling the alarm fields (sample below ) , we could see that resource got filled but alarm-type-id is not filled.
alarm resource code sample :
void agt_sys_send_alarm_notification (const ses_cb_t scb) { agt_not_msg_t not; obj_template_t netconf_alarm_notification_obj; val_value_t leafval; status_t res;
&res); assert(leafval); agt_not_add_to_payload(not, leafval); } output
Incoming notification: notification { eventTime 2024-05-29T12:12:38Z alarm-notification { resource /ietf-interfaces:interfaces/interface[name='uplink_port_intf'] } }
alarm-type-id: code sample / Create a val_idref_t structure / val_idref_t leaf; memset(&leaf, 0, sizeof(val_idref_t)); leaf.identity = NULL;
output mgr_not: got invalid notification on session 1 (invalid value)
pls suggest if something is missed for identityref ? we need to get the alarm-type-id to be filled in alarm-notification as specified in RFC .
thanks Srilekha