pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44166?usp=email ) Change subject: 5G NFs: Fix wrong User-Agent formatting ...................................................................... 5G NFs: Fix wrong User-Agent formatting As per 3GPP TS 29.500 Table 5.2.2.2-1: """ The pattern of the content should start with the value of NF type (e.g. "UDM", see NOTE 1) or "SCP" (for a request originated by an SCP) and followed by a "-" and any other specific information if needed afterwards. """ Change-Id: I9ef6cc7129553b3f5e8736ed291fc3023b8ec5f7 --- M ausf/ConnHdlr.ttcn M bsf/ConnHdlr.ttcn M eir/ConnHdlr.ttcn M nrf/ConnHdlr.ttcn M nssf/ConnHdlr.ttcn M pcf/ConnHdlr.ttcn M sepp/ConnHdlr.ttcn M smf/SMF_Session_CT_5G.ttcn M udm/ConnHdlr.ttcn M udr/ConnHdlr.ttcn 10 files changed, 26 insertions(+), 26 deletions(-) Approvals: fixeria: Looks good to me, but someone else must approve pespin: Looks good to me, approved osmith: Looks good to me, but someone else must approve Jenkins Builder: Verified diff --git a/ausf/ConnHdlr.ttcn b/ausf/ConnHdlr.ttcn index 1fde3c5..061e41a 100644 --- a/ausf/ConnHdlr.ttcn +++ b/ausf/ConnHdlr.ttcn @@ -135,7 +135,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-ausf"), + ts_HTTP2_Hdr_user_agent("AUSF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, @@ -202,7 +202,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-ausf"), + ts_HTTP2_Hdr_user_agent("AUSF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, diff --git a/bsf/ConnHdlr.ttcn b/bsf/ConnHdlr.ttcn index 7159e21..e13f1ff 100644 --- a/bsf/ConnHdlr.ttcn +++ b/bsf/ConnHdlr.ttcn @@ -137,7 +137,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-pcf"), + ts_HTTP2_Hdr_user_agent("PCF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, @@ -203,7 +203,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-pcf"), + ts_HTTP2_Hdr_user_agent("PCF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, @@ -257,7 +257,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-pcf"), + ts_HTTP2_Hdr_user_agent("PCF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, @@ -320,7 +320,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-pcf"), + ts_HTTP2_Hdr_user_agent("PCF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, diff --git a/eir/ConnHdlr.ttcn b/eir/ConnHdlr.ttcn index d4616e5..1ed863f 100644 --- a/eir/ConnHdlr.ttcn +++ b/eir/ConnHdlr.ttcn @@ -135,7 +135,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-ausf"), + ts_HTTP2_Hdr_user_agent("AUSF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, diff --git a/nrf/ConnHdlr.ttcn b/nrf/ConnHdlr.ttcn index 14ccd1c..24588c9 100644 --- a/nrf/ConnHdlr.ttcn +++ b/nrf/ConnHdlr.ttcn @@ -127,7 +127,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-nf"), + ts_HTTP2_Hdr_user_agent("UDM-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip"), ts_HTTP2_header_field("3gpp-sbi-discovery-service-names", "nnrf-nfm"), ts_HTTP2_header_field("3gpp-sbi-max-rsp-time", int2str(10000)), @@ -211,7 +211,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json-patch+json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-nf"), + ts_HTTP2_Hdr_user_agent("UDM-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip"), ts_HTTP2_header_field("3gpp-sbi-discovery-service-names", "nnrf-nfm"), ts_HTTP2_header_field("3gpp-sbi-max-rsp-time", int2str(10000)), @@ -267,7 +267,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-nf"), + ts_HTTP2_Hdr_user_agent("UDM-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip"), ts_HTTP2_header_field("3gpp-sbi-discovery-service-names", "nnrf-nfm"), ts_HTTP2_header_field("3gpp-sbi-max-rsp-time", int2str(10000)), diff --git a/nssf/ConnHdlr.ttcn b/nssf/ConnHdlr.ttcn index 096e810..d8cb373 100644 --- a/nssf/ConnHdlr.ttcn +++ b/nssf/ConnHdlr.ttcn @@ -113,7 +113,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-ausf"), + ts_HTTP2_Hdr_user_agent("AUSF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, diff --git a/pcf/ConnHdlr.ttcn b/pcf/ConnHdlr.ttcn index c296cc4..c08f571 100644 --- a/pcf/ConnHdlr.ttcn +++ b/pcf/ConnHdlr.ttcn @@ -148,7 +148,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-smf"), + ts_HTTP2_Hdr_user_agent("SMF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, diff --git a/sepp/ConnHdlr.ttcn b/sepp/ConnHdlr.ttcn index 880b092..9959271 100644 --- a/sepp/ConnHdlr.ttcn +++ b/sepp/ConnHdlr.ttcn @@ -209,7 +209,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-sepp"), + ts_HTTP2_Hdr_user_agent("SEPP-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, @@ -283,7 +283,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-sepp"), + ts_HTTP2_Hdr_user_agent("SEPP-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, @@ -350,7 +350,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-sepp"), + ts_HTTP2_Hdr_user_agent("SEPP-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, @@ -545,7 +545,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-udm"), + ts_HTTP2_Hdr_user_agent("UDM-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip"), ts_HTTP2_header_field(c_HTTP2_HDR_3Gpp_Sbi_Target_apiRoot, c_sbi_uri_fqdn) } diff --git a/smf/SMF_Session_CT_5G.ttcn b/smf/SMF_Session_CT_5G.ttcn index f81ff22..32ec9f7 100644 --- a/smf/SMF_Session_CT_5G.ttcn +++ b/smf/SMF_Session_CT_5G.ttcn @@ -167,7 +167,7 @@ headers := { ts_HTTP2_Hdr_content_type_multipart(http2_boundary), ts_HTTP2_Hdr_accept("application/json,application/vnd.3gpp.ngap,application/problem+json"), - ts_HTTP2_Hdr_user_agent("ttcn3-amf"), + ts_HTTP2_Hdr_user_agent("AMF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, @@ -333,7 +333,7 @@ headers := { ts_HTTP2_Hdr_content_type_multipart(http2_boundary), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-amf"), + ts_HTTP2_Hdr_user_agent("AMF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, @@ -601,7 +601,7 @@ headers := { ts_HTTP2_Hdr_content_type_multipart(http2_boundary), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-amf"), + ts_HTTP2_Hdr_user_agent("AMF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, diff --git a/udm/ConnHdlr.ttcn b/udm/ConnHdlr.ttcn index 99cce49..3c1e24e 100644 --- a/udm/ConnHdlr.ttcn +++ b/udm/ConnHdlr.ttcn @@ -135,7 +135,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-ausf"), + ts_HTTP2_Hdr_user_agent("AUSF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, @@ -203,7 +203,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-ausf"), + ts_HTTP2_Hdr_user_agent("AUSF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, @@ -274,7 +274,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-ausf"), + ts_HTTP2_Hdr_user_agent("AUSF-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, diff --git a/udr/ConnHdlr.ttcn b/udr/ConnHdlr.ttcn index b70dd1d..ee76e9a 100644 --- a/udr/ConnHdlr.ttcn +++ b/udr/ConnHdlr.ttcn @@ -154,7 +154,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-udm"), + ts_HTTP2_Hdr_user_agent("UDM-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }); @@ -215,7 +215,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json-patch+json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-udm"), + ts_HTTP2_Hdr_user_agent("UDM-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, @@ -268,7 +268,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json"), ts_HTTP2_Hdr_accept("application/json,application/problem+json"), - ts_HTTP2_Hdr_user_agent("ttcn3-udm"), + ts_HTTP2_Hdr_user_agent("UDM-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, @@ -327,7 +327,7 @@ headers := { ts_HTTP2_Hdr_content_type("application/json-patch+json"), ts_HTTP2_Hdr_accept("application/json"), - ts_HTTP2_Hdr_user_agent("ttcn3-udm"), + ts_HTTP2_Hdr_user_agent("UDM-ttcn3"), ts_HTTP2_Hdr_accept_encoding("gzip") } }, -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44166?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I9ef6cc7129553b3f5e8736ed291fc3023b8ec5f7 Gerrit-Change-Number: 44166 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: osmith <osmith@sysmocom.de> Gerrit-Reviewer: pespin <pespin@sysmocom.de>