Commit 873ca5a7 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen
Browse files

switch to API v2 to test with dsTester

parent 557c5598
...@@ -43,7 +43,7 @@ class IndividualPDUSessionHSMFApi { ...@@ -43,7 +43,7 @@ class IndividualPDUSessionHSMFApi {
} }
void init(); void init();
const std::string base = "/nsmf-pdusession/v1"; const std::string base = "/nsmf-pdusession/v2";
private: private:
void setupRoutes(); void setupRoutes();
......
...@@ -71,7 +71,7 @@ class IndividualSMContextApi { ...@@ -71,7 +71,7 @@ class IndividualSMContextApi {
} }
void init(); void init();
const std::string base = "/nsmf-pdusession/v1"; const std::string base = "/nsmf-pdusession/v2";
private: private:
void setupRoutes(); void setupRoutes();
......
...@@ -41,7 +41,7 @@ class PDUSessionsCollectionApi { ...@@ -41,7 +41,7 @@ class PDUSessionsCollectionApi {
} }
void init(); void init();
const std::string base = "/nsmf-pdusession/v1"; const std::string base = "/nsmf-pdusession/v2";
private: private:
void setupRoutes(); void setupRoutes();
......
...@@ -62,7 +62,7 @@ class SMContextsCollectionApi { ...@@ -62,7 +62,7 @@ class SMContextsCollectionApi {
} }
void init(); void init();
const std::string base = "/nsmf-pdusession/v1"; const std::string base = "/nsmf-pdusession/v2";
private: private:
void setupRoutes(); void setupRoutes();
......
...@@ -292,7 +292,7 @@ void smf_http2_server::create_sm_contexts_handler( ...@@ -292,7 +292,7 @@ void smf_http2_server::create_sm_contexts_handler(
//set api root to be used as location header in HTTP response //set api root to be used as location header in HTTP response
sm_context_req_msg.set_api_root( sm_context_req_msg.set_api_root(
m_address + ":" + std::to_string(m_port) m_address + ":" + std::to_string(m_port)
+ "/nsmf-pdusession/v1/sm-context"); + "/nsmf-pdusession/v2/sm-context");
//supi //supi
supi_t supi = { .length = 0 }; supi_t supi = { .length = 0 };
......
...@@ -179,14 +179,14 @@ typedef struct qos_profile_s { ...@@ -179,14 +179,14 @@ typedef struct qos_profile_s {
} qos_profile_t; } qos_profile_t;
//URL, N1, N2 (may get from configuration file) //URL, N1, N2 (may get from configuration file)
#define NAMF_COMMUNICATION_N1N2_MESSAGE_TRANSFER_URL "/namf-comm/v1/ue-contexts/{}/n1-n2-messages" //context id #define NAMF_COMMUNICATION_N1N2_MESSAGE_TRANSFER_URL "/namf-comm/v2/ue-contexts/{}/n1-n2-messages" //context id
#define NUDM_SDM_GET_SM_DATA_URL "/nudm-sdm/v2/{}/sm-data" //ue Id #define NUDM_SDM_GET_SM_DATA_URL "/nudm-sdm/v2/{}/sm-data" //ue Id
#define N1_SM_CONTENT_ID "n1SmMsg" #define N1_SM_CONTENT_ID "n1SmMsg"
#define N1N2_MESSAGE_CLASS "SM" #define N1N2_MESSAGE_CLASS "SM"
#define N2_SM_CONTENT_ID "n2msg" #define N2_SM_CONTENT_ID "n2msg"
#define NSMF_CALLBACK_N1N2_MESSAGE_TRANSFER_FAILURE "/nsmf-pdusession/v1/callback/N1N2MsgTxfrFailureNotification/{}" //UE Id #define NSMF_CALLBACK_N1N2_MESSAGE_TRANSFER_FAILURE "/nsmf-pdusession/v2/callback/N1N2MsgTxfrFailureNotification/{}" //UE Id
#define NSMF_PDU_SESSION_SM_CONTEXT_CREATE_URL "/nsmf-pdusession/v1/sm-contexts" #define NSMF_PDU_SESSION_SM_CONTEXT_CREATE_URL "/nsmf-pdusession/v2/sm-contexts"
#define NSMF_PDU_SESSION_SM_CONTEXT_UPDATE_URL "/nsmf-pdusession/v1/sm-contexts/" #define NSMF_PDU_SESSION_SM_CONTEXT_UPDATE_URL "/nsmf-pdusession/v2/sm-contexts/"
//for CURL //for CURL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment