E2SM cmake update
- hardcoded data for E2 Setup Request; fill_rnd_data_e2_setup_req.c dependancy taken
out
This commit is contained in:
@@ -21,10 +21,109 @@
|
||||
|
||||
#include "read_setup_ran.h"
|
||||
#include "../../E2AP/flexric/src/lib/e2ap/e2ap_node_component_config_add_wrapper.h"
|
||||
#include "../../E2AP/flexric/test/rnd/fill_rnd_data_e2_setup_req.h"
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#if defined(E2AP_V2) || defined(E2AP_V3)
|
||||
// NGAP
|
||||
static e2ap_node_component_config_add_t fill_ngap_e2ap_node_component_config_add(void)
|
||||
{
|
||||
e2ap_node_component_config_add_t dst = {0};
|
||||
|
||||
// Mandatory
|
||||
// 9.2.26
|
||||
dst.e2_node_comp_interface_type = NG_E2AP_NODE_COMP_INTERFACE_TYPE;
|
||||
// Bug!! Optional in the standard, mandatory in ASN.1
|
||||
// 9.2.32
|
||||
dst.e2_node_comp_id.type = NG_E2AP_NODE_COMP_INTERFACE_TYPE;
|
||||
|
||||
const char ng_msg[] = "Dummy message";
|
||||
dst.e2_node_comp_id.ng_amf_name = cp_str_to_ba(ng_msg);
|
||||
|
||||
// Mandatory
|
||||
// 9.2.27
|
||||
const char req[] = "NGAP Request Message sent";
|
||||
const char res[] = "NGAP Response Message reveived";
|
||||
|
||||
dst.e2_node_comp_conf.request = cp_str_to_ba(req);
|
||||
dst.e2_node_comp_conf.response = cp_str_to_ba(res);
|
||||
return dst;
|
||||
}
|
||||
|
||||
// F1AP
|
||||
static e2ap_node_component_config_add_t fill_f1ap_e2ap_node_component_config_add(void)
|
||||
{
|
||||
e2ap_node_component_config_add_t dst = {0};
|
||||
|
||||
// Mandatory
|
||||
// 9.2.26
|
||||
dst.e2_node_comp_interface_type = F1_E2AP_NODE_COMP_INTERFACE_TYPE;
|
||||
// Bug!! Optional in the standard, mandatory in ASN.1
|
||||
// 9.2.32
|
||||
dst.e2_node_comp_id.type = F1_E2AP_NODE_COMP_INTERFACE_TYPE;
|
||||
|
||||
dst.e2_node_comp_id.f1_gnb_du_id = 1023;
|
||||
|
||||
// Mandatory
|
||||
// 9.2.27
|
||||
const char req[] = "F1AP Request Message sent";
|
||||
const char res[] = "F1AP Response Message reveived";
|
||||
|
||||
dst.e2_node_comp_conf.request = cp_str_to_ba(req);
|
||||
dst.e2_node_comp_conf.response = cp_str_to_ba(res);
|
||||
return dst;
|
||||
}
|
||||
|
||||
// E1AP
|
||||
static e2ap_node_component_config_add_t fill_e1ap_e2ap_node_component_config_add(void)
|
||||
{
|
||||
e2ap_node_component_config_add_t dst = {0};
|
||||
|
||||
// Mandatory
|
||||
// 9.2.26
|
||||
dst.e2_node_comp_interface_type = E1_E2AP_NODE_COMP_INTERFACE_TYPE;
|
||||
// Bug!! Optional in the standard, mandatory in ASN.1
|
||||
// 9.2.32
|
||||
dst.e2_node_comp_id.type = E1_E2AP_NODE_COMP_INTERFACE_TYPE;
|
||||
|
||||
dst.e2_node_comp_id.e1_gnb_cu_up_id = 1025;
|
||||
|
||||
// Mandatory
|
||||
// 9.2.27
|
||||
const char req[] = "E1AP Request Message sent";
|
||||
const char res[] = "E1AP Response Message reveived";
|
||||
|
||||
dst.e2_node_comp_conf.request = cp_str_to_ba(req);
|
||||
dst.e2_node_comp_conf.response = cp_str_to_ba(res);
|
||||
return dst;
|
||||
}
|
||||
|
||||
// S1AP
|
||||
static e2ap_node_component_config_add_t fill_s1ap_e2ap_node_component_config_add(void)
|
||||
{
|
||||
e2ap_node_component_config_add_t dst = {0};
|
||||
|
||||
// Mandatory
|
||||
// 9.2.26
|
||||
dst.e2_node_comp_interface_type = S1_E2AP_NODE_COMP_INTERFACE_TYPE;
|
||||
// Bug!! Optional in the standard, mandatory in ASN.1
|
||||
// 9.2.32
|
||||
dst.e2_node_comp_id.type = S1_E2AP_NODE_COMP_INTERFACE_TYPE;
|
||||
|
||||
const char str[] = "S1 NAME";
|
||||
dst.e2_node_comp_id.s1_mme_name = cp_str_to_ba(str);
|
||||
|
||||
// Mandatory
|
||||
// 9.2.27
|
||||
const char req[] = "S1AP Request Message sent";
|
||||
const char res[] = "S1AP Response Message reveived";
|
||||
|
||||
dst.e2_node_comp_conf.request = cp_str_to_ba(req);
|
||||
dst.e2_node_comp_conf.response = cp_str_to_ba(res);
|
||||
return dst;
|
||||
}
|
||||
#endif
|
||||
|
||||
void read_setup_ran(void* data, const ngran_node_t node_type)
|
||||
{
|
||||
assert(data != NULL);
|
||||
|
||||
Reference in New Issue
Block a user