Skip to content

Commit

Permalink
Merge pull request #1863 from horecoli/amf_service_name_change
Browse files Browse the repository at this point in the history
amf: Change amf_pod_name to amf_service_name
  • Loading branch information
agentpoyo authored Jan 31, 2024
2 parents bd48466 + 4506945 commit 463be6d
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion sample-cnfs/sample_open5gs/cnf-testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ allowlist_helm_chart_container_names: []
amf_label: app.kubernetes.io/name=amf
smf_label: app.kubernetes.io/name=smf
upf_label: app.kubernetes.io/name=upf
amf_pod_name: open5gs-amf-ngap
amf_service_name: open5gs-amf-ngap
mmc: '999'
mnc: '70'
sst: 1
Expand Down
2 changes: 1 addition & 1 deletion sample-cnfs/sample_open5gs_no_auth/cnf-testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ release_name: open5gs
allowlist_helm_chart_container_names: []
#optional 5gcore tag
amf_label: app.kubernetes.io/name=amf
amf_pod_name: open5gs-amf-ngap
amf_service_name: open5gs-amf-ngap
mmc: '999'
mnc: '70'
sst: 1
Expand Down
2 changes: 1 addition & 1 deletion sample-cnfs/sample_srsran_ueauth_open5gs/cnf-testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ release_name: open5gs
allowlist_helm_chart_container_names: []
#optional 5gcore tag
core: app.kubernetes.io/name=amf
amf_pod_name: open5gs-amf-ngap
amf_service_name: open5gs-amf-ngap
mmc: '999'
mnc: '70'
sst: 1
Expand Down
4 changes: 2 additions & 2 deletions src/tasks/utils/config.cr
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module CNFManager
smf_label: String,
upf_label: String,
ric_label: String,
fiveG_core: NamedTuple(amf_pod_name: String,
fiveG_core: NamedTuple(amf_service_name: String,
mmc: String,
mnc: String,
sst: String,
Expand Down Expand Up @@ -111,7 +111,7 @@ module CNFManager
else
core_sd = ""
end
fiveG_core = {amf_pod_name: optional_key_as_string(config, "amf_pod_name"),
fiveG_core = {amf_service_name: optional_key_as_string(config, "amf_service_name"),
mmc: optional_key_as_string(config, "mmc"),
mnc: optional_key_as_string(config, "mnc"),
sst: optional_key_as_string(config, "sst"),
Expand Down
6 changes: 3 additions & 3 deletions src/tasks/utils/srsran.cr
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module SRSRAN
core = config.cnf_config[:amf_label]?
Log.info { "core: #{core}" }
#todo use sane defaults (i.e. search for amf, upf, etc in pod names) if no 5gcore labels are present
amf_pod_name = config.cnf_config[:fiveG_core][:amf_pod_name]?
amf_service_name = config.cnf_config[:fiveG_core][:amf_service_name]?
mmc = config.cnf_config[:fiveG_core][:mmc]?
mnc = config.cnf_config[:fiveG_core][:mnc]?
sst = config.cnf_config[:fiveG_core][:sst]?
Expand Down Expand Up @@ -65,7 +65,7 @@ module SRSRAN
routingIndicator = "routingIndicator: '#{config.cnf_config[:fiveG_core][:routingIndicator]}'"
end

ue_values = UERANSIM::Template.new(amf_pod_name,
ue_values = UERANSIM::Template.new(amf_service_name,
mmc,
mnc,
sst,
Expand Down Expand Up @@ -103,7 +103,7 @@ module SRSRAN
# The argument for insecure_registries is a string
# because the template only writes the content
# and expects a list of comma separated strings.
def initialize(@amf_pod_name : String,
def initialize(@amf_service_name : String,
@mmc : String,
@mnc : String,
@sst : String,
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/utils/task.cr
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module CNFManager
smf_label: "",
upf_label: "",
ric_label: "",
fiveG_core: {amf_pod_name: "",
fiveG_core: {amf_service_name: "",
mmc: "",
mnc: "",
sst: "",
Expand Down
6 changes: 3 additions & 3 deletions src/tasks/utils/ueransim.cr
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module UERANSIM
core = config.cnf_config[:amf_label]?
Log.info { "core: #{core}" }
#todo use sane defaults (i.e. search for amf, upf, etc in pod names) if no 5gcore labels are present
amf_pod_name = config.cnf_config[:fiveG_core][:amf_pod_name]?
amf_service_name = config.cnf_config[:fiveG_core][:amf_service_name]?
mmc = config.cnf_config[:fiveG_core][:mmc]?
mnc = config.cnf_config[:fiveG_core][:mnc]?
sst = config.cnf_config[:fiveG_core][:sst]?
Expand Down Expand Up @@ -71,7 +71,7 @@ module UERANSIM
routingIndicator = "routingIndicator: '#{config.cnf_config[:fiveG_core][:routingIndicator]}'"
end

ue_values = UERANSIM::Template.new(amf_pod_name,
ue_values = UERANSIM::Template.new(amf_service_name,
mmc,
mnc,
sst,
Expand Down Expand Up @@ -109,7 +109,7 @@ module UERANSIM
# The argument for insecure_registries is a string
# because the template only writes the content
# and expects a list of comma separated strings.
def initialize(@amf_pod_name : String,
def initialize(@amf_service_name : String,
@mmc : String,
@mnc : String,
@sst : String,
Expand Down
2 changes: 1 addition & 1 deletion src/templates/ues-values-template.yml.ecr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
amf:
hostname: <%= @amf_pod_name %>
hostname: <%= @amf_service_name %>

mcc: '<%= @mmc %>'
mnc: '<%= @mnc %>'
Expand Down

0 comments on commit 463be6d

Please # to comment.