Commit 991fed8a authored by Niuhaiwen's avatar Niuhaiwen

add nrf api_version

parent ea1dcaaa
......@@ -27,6 +27,7 @@ AUSF =
INTERFACE_NAME = "ens33";
IPV4_ADDRESS = "192.168.83.129/24";
PORT = 80;
API_VERSION = "v1"
};
};
};
......
......@@ -148,7 +148,7 @@ int ausf_config::load(const std::string &config_file) {
const Setting &nnrf_cfg = new_if_cfg[AUSF_CONFIG_STRING_INTERFACE_NNRF];
load_interface(nnrf_cfg, nnrf);
nnrf_cfg.lookupValue(AUSF_CONFIG_STRING_API_VERSION, nnrf.api_version);
// const Setting &udr_addr_pool = nudm_cfg[AUSF_CONFIG_STRING_UDR_INSTANCES_POOL];
// int count = udr_addr_pool.getLength();
// for (int i = 0; i < count; i++) {
......@@ -242,6 +242,7 @@ void ausf_config::display() {
Logger::config().info(" iface ................: %s", nnrf.if_name.c_str());
Logger::config().info(" ip ...................: %s", inet_ntoa(nnrf.addr4));
Logger::config().info(" port .................: %d", nnrf.port);
Logger::config().info(" api_version...........: %s", nnrf.api_version.c_str());
// Logger::config().info(" HTTP2 port ............: %d", nudm_http2_port);
......
......@@ -60,7 +60,7 @@
#define AUSF_CONFIG_STRING_PORT "PORT"
#define AUSF_CONFIG_STRING_PPID "PPID"
#define AUSF_CONFIG_STRING_NF_REGISTRATION "NF_REGISTRATION"
#define AUSF_CONFIG_STRING_API_VERSION "API_VERSION"
// #define AUSF_CONFIG_STRING_UDM_INSTANCES_POOL "UDM_INSTANCES_POOL"
// #define AUSF_CONFIG_STRING_UDM_INSTANCE_ID "UDM_INSTANCE_ID"
......@@ -109,6 +109,7 @@ typedef struct interface_cfg_s {
struct in6_addr addr6;
unsigned int mtu;
unsigned int port;
std::string api_version;
} interface_cfg_t;
......
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