Commit ea1dcaaa authored by Niuhaiwen's avatar Niuhaiwen

add nrf cfg successfully

parent 387abb6b
......@@ -5,25 +5,30 @@ AUSF =
PID_DIRECTORY = "/var/run";
AUSF_NAME = "bupt-ausf";
NF_REGISTRATION = "yes";
INTERFACES:{
SBI_AUSF:{
INTERFACE_NAME = "ens33"; #interface for providing ausf service
IPV4_ADDRESS = "192.168.2.101/24"; #address for intercafe (cidr)
IPV4_ADDRESS = "192.168.83.130/24"; #address for intercafe (cidr)
PORT = 8383; #ausf service port
PPID = 60;
};
NUDM:{
INTERFACE_NAME = "ens32"; #interface for providing udm service
IPV4_ADDRESS = "192.168.2.35/24"; #address for intercafe (cidr)
INTERFACE_NAME = "ens33"; #interface for providing udm service
IPV4_ADDRESS = "192.168.83.130/24"; #address for intercafe (cidr)
PORT = 8181; #udm service port
};
NAMF:{
INTERFACE_NAME = "ens33"; #interface for request for amf service
IPV4_ADDRESS = "192.168.2.101/24"; #amf address (cidr)
IPV4_ADDRESS = "192.168.83.130/24"; #amf address (cidr)
PORT = 8383; #amf port
};
};
NNRF:{
INTERFACE_NAME = "ens33";
IPV4_ADDRESS = "192.168.83.129/24";
PORT = 80;
};
};
};
......@@ -257,7 +257,7 @@ void ausf_config::display() {
}
//------------------------------------------------------------------------------
int ausf_config:::load_interface(const libconfig::Setting &if_cfg, interface_cfg_t &cfg) {
int ausf_config::load_interface(const libconfig::Setting &if_cfg, interface_cfg_t &cfg) {
if_cfg.lookupValue(AUSF_CONFIG_STRING_INTERFACE_NAME, cfg.if_name);
util::trim(cfg.if_name);
if (not boost::iequals(cfg.if_name, "none")) {
......
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