Commit ea1dcaaa authored by Niuhaiwen's avatar Niuhaiwen

add nrf cfg successfully

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