e2ap: add all RIC subscription API funcs

master
Piotr Gawlowicz 2 years ago committed by Justin Tallon
parent 53280294e7
commit a54e18e686

@ -59,6 +59,11 @@ public:
e2_ap_pdu_c generate_subscription_failure(ric_subscription_reponse_t ric_subscription_reponse); e2_ap_pdu_c generate_subscription_failure(ric_subscription_reponse_t ric_subscription_reponse);
e2_ap_pdu_c generate_subscription_delete_response(ric_subscription_reponse_t ric_subscription_reponse); e2_ap_pdu_c generate_subscription_delete_response(ric_subscription_reponse_t ric_subscription_reponse);
e2_ap_pdu_c generate_subscription_delete_failure(ric_subscription_reponse_t ric_subscription_reponse); e2_ap_pdu_c generate_subscription_delete_failure(ric_subscription_reponse_t ric_subscription_reponse);
e2_ap_pdu_c generate_subscription_delete_required(ric_subscription_reponse_t ric_subscription_reponse);
e2_ap_pdu_c generate_subscription_modification_response();
e2_ap_pdu_c generate_subscription_modification_failure();
e2_ap_pdu_c generate_subscription_modification_required();
e2_ap_pdu_c generate_indication(ric_indication_t& ric_indication); e2_ap_pdu_c generate_indication(ric_indication_t& ric_indication);
e2_ap_pdu_c generate_reset_request(); e2_ap_pdu_c generate_reset_request();
e2_ap_pdu_c generate_reset_response(); e2_ap_pdu_c generate_reset_response();

@ -36,6 +36,10 @@ public:
void send_subscription_failure(); void send_subscription_failure();
void delete_subscription(); void delete_subscription();
bool handle_subscription_modification_request(uint32_t ric_subscription_modification_request);
bool handle_subscription_modification_confirm(uint32_t ric_subscription_modification_confirm);
bool handle_subscription_modification_refuse(uint32_t ric_subscription_modification_refuse);
private: private:
void send_ric_indication(); void send_ric_indication();
uint32_t _generate_ric_indication_sn(); uint32_t _generate_ric_indication_sn();

@ -176,6 +176,34 @@ e2_ap_pdu_c e2ap::generate_subscription_delete_failure(ric_subscription_reponse_
return pdu; return pdu;
} }
e2_ap_pdu_c e2ap::generate_subscription_delete_required(ric_subscription_reponse_t ric_subscription_reponse)
{
// TODO: available in e2ap-v3
e2_ap_pdu_c pdu;
return pdu;
}
e2_ap_pdu_c e2ap::generate_subscription_modification_response()
{
// TODO: available in e2ap-v3
e2_ap_pdu_c pdu;
return pdu;
}
e2_ap_pdu_c e2ap::generate_subscription_modification_failure()
{
// TODO: available in e2ap-v3
e2_ap_pdu_c pdu;
return pdu;
}
e2_ap_pdu_c e2ap::generate_subscription_modification_required()
{
// TODO: available in e2ap-v3
e2_ap_pdu_c pdu;
return pdu;
}
int e2ap::process_setup_response(e2setup_resp_s setup_response) int e2ap::process_setup_response(e2setup_resp_s setup_response)
{ {
if (setup_procedure_transaction_id == setup_response->transaction_id.value.value) { if (setup_procedure_transaction_id == setup_response->transaction_id.value.value) {

@ -149,6 +149,27 @@ void ric_client::ric_subscription::delete_subscription()
parent->queue_send_e2ap_pdu(send_pdu); parent->queue_send_e2ap_pdu(send_pdu);
} }
bool ric_client::ric_subscription::handle_subscription_modification_request(
uint32_t ric_subscription_modification_request)
{
// TODO: available in e2ap-v3
return false;
}
bool ric_client::ric_subscription::handle_subscription_modification_confirm(
uint32_t ric_subscription_modification_confirm)
{
// TODO: available in e2ap-v3
return false;
}
bool ric_client::ric_subscription::handle_subscription_modification_refuse(
uint32_t ric_subscription_modification_refuse)
{
// TODO: available in e2ap-v3
return false;
}
uint32_t ric_client::ric_subscription::_generate_ric_indication_sn() uint32_t ric_client::ric_subscription::_generate_ric_indication_sn()
{ {
uint32_t sn = _ric_indication_sn_gen; uint32_t sn = _ric_indication_sn_gen;

Loading…
Cancel
Save