-// Used by submgr
-func (c *E2ap) SetSubscriptionDeleteFailureSequenceNumber(payload []byte, newSubscriptionid uint16) (err error) {
- cptr := unsafe.Pointer(&payload[0])
- size := C.e2ap_set_ric_subscription_delete_failure_sequence_number(cptr, C.size_t(len(payload)), C.long(newSubscriptionid))
- if size < 0 {
- return fmt.Errorf("e2ap wrapper is unable to set Subscription Delete Failure Sequence Number due to wrong or invalid payload. Erroxappde: %v", size)
+//-----------------------------------------------------------------------------
+//
+//-----------------------------------------------------------------------------
+func (e *E2ap) CheckActionNotAdmittedList(msgType int, actionNotAdmittedList e2ap.ActionNotAdmittedList, c *Control) ErrorInfo {
+
+ var prefixString string
+ var errorInfo ErrorInfo
+ var actionNotAdmittedString string
+ if len(actionNotAdmittedList.Items) > 0 {
+ if msgType == xapp.RIC_SUB_RESP {
+ prefixString = "RICSubscriptionResponse partially accepted:"
+ c.UpdateCounter(cPartialSubRespFromE2)
+ } else if msgType == xapp.RIC_SUB_FAILURE {
+ prefixString = "RICSubscriptionFailure:"
+ }
+ jsonActionNotAdmittedList, err := json.Marshal(actionNotAdmittedList.Items)
+ if err != nil {
+ actionNotAdmittedString = "ActionNotAdmittedList > 0. Submgr json.Marshal error"
+ xapp.Logger.Error("CheckActionNotAdmittedList() json.Marshal error %s", err.Error())
+ } else {
+ actionNotAdmittedString = "ActionNotAdmittedList: " + string(jsonActionNotAdmittedList)
+ }