Commit 358093ed authored by Niuhaiwen's avatar Niuhaiwen

set heart-timer to 1

parent 1ece6d38
...@@ -86,7 +86,7 @@ amf_app::amf_app(const amf_config& amf_cfg) { ...@@ -86,7 +86,7 @@ amf_app::amf_app(const amf_config& amf_cfg) {
timer_id_t tid = itti_inst->timer_setup( timer_id_t tid = itti_inst->timer_setup(
amf_cfg.statistics_interval, 0, TASK_AMF_APP, amf_cfg.statistics_interval, 0, TASK_AMF_APP,
TASK_AMF_APP_PERIODIC_STATISTICS, 0); TASK_AMF_APP_PERIODIC_STATISTICS, 0);
timer_nrf_heartbeat = itti_inst->timer_setup(10, 0, TASK_AMF_APP, timer_nrf_heartbeat = itti_inst->timer_setup(1, 0, TASK_AMF_APP,
TASK_AMF_APP_TIMEOUT_NRF_HEARTBEAT, TASK_AMF_APP_TIMEOUT_NRF_HEARTBEAT,
0); 0);
Logger::amf_app().startup("Started timer (%d)", tid); Logger::amf_app().startup("Started timer (%d)", tid);
...@@ -412,7 +412,7 @@ void amf_app::generate_amf_profile() { ...@@ -412,7 +412,7 @@ void amf_app::generate_amf_profile() {
nf_instance_profile.set_nf_instance_name("OAI-AMF"); nf_instance_profile.set_nf_instance_name("OAI-AMF");
nf_instance_profile.set_nf_type("AMF"); nf_instance_profile.set_nf_type("AMF");
nf_instance_profile.set_nf_status("REGISTERED"); nf_instance_profile.set_nf_status("REGISTERED");
nf_instance_profile.set_nf_heartBeat_timer(10); nf_instance_profile.set_nf_heartBeat_timer(1);
nf_instance_profile.set_nf_priority(1); nf_instance_profile.set_nf_priority(1);
nf_instance_profile.set_nf_capacity(100); nf_instance_profile.set_nf_capacity(100);
nf_instance_profile.add_nf_ipv4_addresses(amf_cfg.n11.addr4); nf_instance_profile.add_nf_ipv4_addresses(amf_cfg.n11.addr4);
......
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