Commit 8080ecc5 authored by Stefan Spettel's avatar Stefan Spettel

fix(smf): Fix conf to not use PCF when local PCC rules are enabled

Signed-off-by: default avatarStefan Spettel <stefan.spettel@eurecom.fr>
parent 0e4d0dd6
......@@ -531,9 +531,9 @@ int smf_config::load(const string& config_file) {
SMF_CONFIG_STRING_SUPPORT_FEATURES_USE_LOCAL_PCC_RULES, opt);
if (boost::iequals(opt, "yes")) {
Logger::smf_app().warn(
"Local PCC rules feature is not supported, you need to configure "
"and use the PCF. This feature is set to false");
use_local_pcc_rules = false; // set to false as not yet supported
"Local PCC rules feature is not yet supported, the default values "
"from the config file are used.");
use_local_pcc_rules = true;
// discover_pcf = false;
} else {
use_local_pcc_rules = false;
......
......@@ -1526,6 +1526,7 @@ void smf_context::handle_pdu_session_create_sm_context_request(
"PCF SM Policy Association Creation was not successful. Continue "
"using default rules");
use_pcf_policy = false;
sp->policy_ptr.reset();
// Here, the standard says that we could reject the PDU session or allow
// the PDU session applying local policies 29.512 Chapter 4.2.2.2
// TODO I propose to have this behavior configurable, for now we
......
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