lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

October 2026

  • 1 participants
  • 1245 discussions
[S] Change in osmo-ci[master]: jobs/registry-rebuild-upload-titan: add mail param
by pespin 15 Oct '26

15 Oct '26
Attention is currently required from: osmith. pespin has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ci/+/43897?usp=email ) Change subject: jobs/registry-rebuild-upload-titan: add mail param ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/43897?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: I928fd316d092b688bd60a65f8a447dd648ee255f Gerrit-Change-Number: 43897 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Thu, 15 Oct 2026 12:11:12 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in osmo-ci[master]: jobs/ttcn3: set TESTENV_COMPRESS_BIG_LOGS=1
by pespin 15 Oct '26

15 Oct '26
Attention is currently required from: osmith. pespin has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ci/+/43899?usp=email ) Change subject: jobs/ttcn3: set TESTENV_COMPRESS_BIG_LOGS=1 ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/43899?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: Ieef7681c34260919a4c652f210726de960173836 Gerrit-Change-Number: 43899 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Thu, 15 Oct 2026 12:10:56 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in osmo-ci[master]: jobs/registry-rebuild-upload-titan: set REPODIR
by fixeria 15 Oct '26

15 Oct '26
Attention is currently required from: osmith. fixeria has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ci/+/43898?usp=email ) Change subject: jobs/registry-rebuild-upload-titan: set REPODIR ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/43898?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: Ie0e28e4bdad3e666dc4b25030a2f6a134a2f3030 Gerrit-Change-Number: 43898 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Thu, 15 Oct 2026 11:44:47 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in osmo-ci[master]: jobs/registry-rebuild-upload-titan: add mail param
by fixeria 15 Oct '26

15 Oct '26
Attention is currently required from: osmith, pespin. fixeria has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ci/+/43897?usp=email ) Change subject: jobs/registry-rebuild-upload-titan: add mail param ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/43897?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: I928fd316d092b688bd60a65f8a447dd648ee255f Gerrit-Change-Number: 43897 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Thu, 15 Oct 2026 11:44:10 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in osmo-ci[master]: jobs/registry-rebuild-upload-titan: add mail param
by osmith 15 Oct '26

15 Oct '26
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/43897?usp=email ) Change subject: jobs/registry-rebuild-upload-titan: add mail param ...................................................................... jobs/registry-rebuild-upload-titan: add mail param Change-Id: I928fd316d092b688bd60a65f8a447dd648ee255f --- M jobs/registry-rebuild-upload-titan.yml 1 file changed, 11 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/97/43897/1 diff --git a/jobs/registry-rebuild-upload-titan.yml b/jobs/registry-rebuild-upload-titan.yml index 64d7619..c9376ac 100644 --- a/jobs/registry-rebuild-upload-titan.yml +++ b/jobs/registry-rebuild-upload-titan.yml @@ -19,6 +19,11 @@ - build-discarder: days-to-keep: 30 num-to-keep: 30 + parameters: + - string: + name: EMAIL_NOTIFICATIONS + description: For failed build notifications, set to empty to disable + default: 'jenkins-notifications(a)lists.osmocom.org' node: osmocom-master parameters: - string: @@ -38,7 +43,7 @@ publishers: - email: notify-every-unstable-build: true - recipients: 'jenkins-notifications(a)lists.osmocom.org' + recipients: '$EMAIL_NOTIFICATIONS' - job: name: registry-rebuild-upload-ttcn3-bts-tests @@ -84,6 +89,10 @@ name: BRANCH description: osmo-ttcn3-hacks.git branch default: 'master' + - string: + name: EMAIL_NOTIFICATIONS + description: For failed build notifications, set to empty to disable + default: 'jenkins-notifications(a)lists.osmocom.org' scm: - git: url: https://gerrit.osmocom.org/osmo-ttcn3-hacks @@ -105,6 +114,6 @@ publishers: - email: notify-every-unstable-build: true - recipients: 'jenkins-notifications(a)lists.osmocom.org' + recipients: '$EMAIL_NOTIFICATIONS' # vim: expandtab tabstop=2 shiftwidth=2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/43897?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: I928fd316d092b688bd60a65f8a447dd648ee255f Gerrit-Change-Number: 43897 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-ci[master]: jobs/registry-rebuild-upload-titan: set REPODIR
by osmith 15 Oct '26

15 Oct '26
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/43898?usp=email ) Change subject: jobs/registry-rebuild-upload-titan: set REPODIR ...................................................................... jobs/registry-rebuild-upload-titan: set REPODIR Set REPODIR, so it doesn't default to Debian_12. I forgot to make this change here after changing how this works in osmo-ttcn3-hacks, and it didn't cause problems yet because this is a manually triggered job. Related: osmo-ttcn3-hacks Ib8f04ee1e8b33f6e724ea2a74b1a96f26746e878 Change-Id: Ie0e28e4bdad3e666dc4b25030a2f6a134a2f3030 --- M jobs/registry-rebuild-upload-titan.yml 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/98/43898/1 diff --git a/jobs/registry-rebuild-upload-titan.yml b/jobs/registry-rebuild-upload-titan.yml index c9376ac..d3d751a 100644 --- a/jobs/registry-rebuild-upload-titan.yml +++ b/jobs/registry-rebuild-upload-titan.yml @@ -102,11 +102,13 @@ - shell: | REGISTRY="registry.osmocom.org" DISTRO="debian:trixie" + REPODIR="Debian_13" IMAGE="registry.osmocom.org/osmocom-build/"$(echo "$DISTRO" | tr : -)"-osmo-ttcn3-testenv" podman build \ --build-arg DISTRO="$DISTRO" \ --build-arg REGISTRY="$REGISTRY" \ + --build-arg REPODIR="$REPODIR" \ -t "$IMAGE" \ _testenv/data/podman -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/43898?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: Ie0e28e4bdad3e666dc4b25030a2f6a134a2f3030 Gerrit-Change-Number: 43898 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-ci[master]: jobs/ttcn3: set TESTENV_COMPRESS_BIG_LOGS=1
by osmith 15 Oct '26

15 Oct '26
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/43899?usp=email ) Change subject: jobs/ttcn3: set TESTENV_COMPRESS_BIG_LOGS=1 ...................................................................... jobs/ttcn3: set TESTENV_COMPRESS_BIG_LOGS=1 Save lots of disk space. Related: OS#7105 Related: osmo-ttcn3-hacks I0766f6236f023ea8e3329c1364c9ee048e00c6d0 Change-Id: Ieef7681c34260919a4c652f210726de960173836 --- M jobs/ttcn3-testsuites-testenv.yml 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/99/43899/1 diff --git a/jobs/ttcn3-testsuites-testenv.yml b/jobs/ttcn3-testsuites-testenv.yml index f9a6b10..7f65121 100644 --- a/jobs/ttcn3-testsuites-testenv.yml +++ b/jobs/ttcn3-testsuites-testenv.yml @@ -739,6 +739,7 @@ export TESTENV_SOURCE_HIGHLIGHT_COLORS="esc" export TESTENV_NO_IMAGE_UP_TO_DATE_CHECK=1 export TESTENV_NO_KVM=1 + export TESTENV_COMPRESS_BIG_LOGS=1 set -x uptime | grep --color=always -o "load.*" -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/43899?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: Ieef7681c34260919a4c652f210726de960173836 Gerrit-Change-Number: 43899 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: testenv: optionally compress big ttcn3 logs
by osmith 15 Oct '26

15 Oct '26
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43896?usp=email ) Change subject: testenv: optionally compress big ttcn3 logs ...................................................................... testenv: optionally compress big ttcn3 logs Use pigz (parallel implementation of gzip) to compress logs bigger than 1 MiB if TESTENV_COMPRESS_BIG_LOGS=1 is set, which will be the case in jenkins. This saves a lot of space in the build artifacts. I decided to not compress small log files because it can be useful to quickly open them in the browser. Related: OS#7105 Change-Id: I0766f6236f023ea8e3329c1364c9ee048e00c6d0 --- M _testenv/README.md M _testenv/data/podman/Dockerfile A _testenv/data/scripts/log_compress.sh M _testenv/testenv/testsuite.py 4 files changed, 31 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/96/43896/1 diff --git a/_testenv/README.md b/_testenv/README.md index f10d349..4f53724 100644 --- a/_testenv/README.md +++ b/_testenv/README.md @@ -226,6 +226,11 @@ available but doesn't work in podman. QEMU runs a bit slower when this is set. +* `TESTENV_COMPRESS_BIG_LOGS`: + When set to 1, compress `.merged` ttcn3 log files that are bigger than 1 MiB + with `gz`. This is used in jenkins to reduce job artifact sizes. Requires + `pigz` to be installed when running without `--podman`. + ### Environment variables set by testenv Testenv sets the following variables while running shell commands from diff --git a/_testenv/data/podman/Dockerfile b/_testenv/data/podman/Dockerfile index 6a1a42a..f808433 100644 --- a/_testenv/data/podman/Dockerfile +++ b/_testenv/data/podman/Dockerfile @@ -74,6 +74,7 @@ netcat-openbsd \ pax-utils \ pcscd \ + pigz \ pkg-config \ procps \ psmisc \ diff --git a/_testenv/data/scripts/log_compress.sh b/_testenv/data/scripts/log_compress.sh new file mode 100755 index 0000000..3e142ad --- /dev/null +++ b/_testenv/data/scripts/log_compress.sh @@ -0,0 +1,13 @@ +#!/bin/sh -e +# Compress big log files (OS#7105) +min=1000000 # ~ 1 MiB + +for i in *.merged; do + size="$(stat -c"%s" "$i")" + + if [ $size -lt $min ]; then + continue + fi + + pigz -9 "$i" +done diff --git a/_testenv/testenv/testsuite.py b/_testenv/testenv/testsuite.py index 52886cf..fc1716f 100644 --- a/_testenv/testenv/testsuite.py +++ b/_testenv/testenv/testsuite.py @@ -97,6 +97,17 @@ testenv.cmd.run(cmd, cwd=cwd, env=builddir_env) +def compress_big_log_files(cfg): + cwd = os.path.join(testenv.testdir.testdir, "testsuite") + + if os.getenv("TESTENV_COMPRESS_BIG_LOGS") != "1": + return + + logging.info("Compressing big log files") + cmd = os.path.join(testenv.data_dir, "scripts/log_compress.sh") + testenv.cmd.run(cmd, cwd=cwd, env=builddir_env) + + def get_junit_logs(topdir): pattern = os.path.join(topdir, "**", "junit-*.log") return glob.glob(pattern, recursive=True) @@ -192,6 +203,7 @@ merge_log_files(cfg) format_log_files(cfg) + compress_big_log_files(cfg) if testenv.args.bisect and not check_testsuite_successful(): raise testenv.NoTraceException("Testsuite failed!") -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43896?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I0766f6236f023ea8e3329c1364c9ee048e00c6d0 Gerrit-Change-Number: 43896 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de>
1 0
0 0
[L] Change in osmo-ttcn3-hacks[master]: smf,pgw: Split GTPv2C S2b/S5/S8c create session into multiple func he...
by pespin 15 Oct '26

15 Oct '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43895?usp=email ) Change subject: smf,pgw: Split GTPv2C S2b/S5/S8c create session into multiple func helpers ...................................................................... smf,pgw: Split GTPv2C S2b/S5/S8c create session into multiple func helpers This will be used by follow-up tests which want to trigger parts of the Create Session procedure. Modify PGW_Tests the same way to have similar code base (and because I wrongly started modifying it instead of SMF_Tests, so the work is done anyway ;) Change-Id: I07896c37d06014873b120f87457f99f529f4601a --- M pgw/PGW_Session_CT.ttcn M smf/SMF_Session_CT_4G.ttcn 2 files changed, 175 insertions(+), 104 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/95/43895/1 diff --git a/pgw/PGW_Session_CT.ttcn b/pgw/PGW_Session_CT.ttcn index 146c3f2..f94192f 100644 --- a/pgw/PGW_Session_CT.ttcn +++ b/pgw/PGW_Session_CT.ttcn @@ -247,6 +247,21 @@ } } +function f_DIA_handle_create_sesion() runs on PGW_Session_CT +{ + var boolean do_s6b := is_s2b_iface(); + if (do_s6b and DIAMETER[DIA_S6b].checkstate("Connected")) { + as_DIA_S6b_AAR(); + } + if (DIAMETER[DIA_Gx].checkstate("Connected")) { + as_DIA_Gx_CCR(INITIAL_REQUEST); + } + /* FIXME: When on S2b interface, SMF is not using the Gy interface, unknown reason. */ + if (DIAMETER[DIA_Gy].checkstate("Connected")) { + as_DIA_Gy_CCR(INITIAL_REQUEST); + } +} + /* GTPv2C */ private function is_s2b_iface() runs on PGW_Session_CT return boolean { return (g_pars.rat_type == GTP2C_RAT_WLAN or g_pars.rat_type == GTP2C_RAT_Virtual); @@ -339,23 +354,11 @@ } } -/* create a session on the PGW */ -private function f_create_session(template (value) FullyQualifiedTEID fteid_c_ie, - template (value) FullyQualifiedTEID fteid_u_ie, - template (omit) UserLocationInfo uli_ie := omit, - template (omit) APCO apco := omit, - template APCO exp_apco := *) runs on PGW_Session_CT { - var PDU_GTPCv2 rx; - - /* Defaults used for s5/s8: */ - var boolean do_s6b := false; - var template APN_Restriction apn_restriction := ?; - /* Change behavior when on S2b: */ - if (is_s2b_iface()) { - do_s6b := true; - apn_restriction := omit; - } - +function f_s5s8_tx_create_session_req(template (value) FullyQualifiedTEID fteid_c_ie, + template (value) FullyQualifiedTEID fteid_u_ie, + template (omit) UserLocationInfo uli_ie := omit, + template (omit) APCO apco := omit) +runs on PGW_Session_CT { var template (value) PDU_GTPCv2 g2c := ts_GTP2C_CreateSessionReq(imsi := g_pars.imsi, msisdn := g_pars.msisdn, @@ -371,16 +374,27 @@ apco := apco); GTP2.send(g2c); - if (do_s6b and DIAMETER[DIA_S6b].checkstate("Connected")) { - as_DIA_S6b_AAR(); +} + +/* create a session on the PGW */ +private function f_create_session(template (value) FullyQualifiedTEID fteid_c_ie, + template (value) FullyQualifiedTEID fteid_u_ie, + template (omit) UserLocationInfo uli_ie := omit, + template (omit) APCO apco := omit, + template APCO exp_apco := *) runs on PGW_Session_CT { + var PDU_GTPCv2 rx; + + /* Defaults used for s5/s8: */ + var template APN_Restriction apn_restriction := ?; + /* Change behavior when on S2b: */ + if (is_s2b_iface()) { + apn_restriction := omit; } - if (DIAMETER[DIA_Gx].checkstate("Connected")) { - as_DIA_Gx_CCR(INITIAL_REQUEST); - } - /* FIXME: When on S2b interface, SMF is not using the Gy interface, unknown reason. */ - if (DIAMETER[DIA_Gy].checkstate("Connected")) { - as_DIA_Gy_CCR(INITIAL_REQUEST); - } + + f_s5s8_tx_create_session_req(fteid_c_ie, fteid_u_ie, uli_ie, apco); + + f_DIA_handle_create_sesion(); + alt { [] GTP2.receive(tr_GTP2C_CreateSessionResp(d_teid := g_pars.teic_local, cause := Request_accepted, @@ -445,42 +459,64 @@ } -/* create a session on the PGW on a S5/S8 interface (from SGW )*/ -function f_s5s8_create_session() runs on PGW_Session_CT { - var template (value) FullyQualifiedTEID fteid_c_ie, fteid_u_ie; +function f_s5s8_UserLocationInfo() runs on PGW_Session_CT return UserLocationInfo +{ var template (value) UserLocationInfo uli_ie; - - fteid_c_ie := ts_GTP2C_FTEID(FTEID_IF_S5S8_SGW_GTPC, g_pars.teic_local, 0, - f_inet_addr(mp_local_hostname_c), omit); - fteid_u_ie := ts_GTP2C_FTEID(FTEID_IF_S5S8_SGW_GTPU, g_pars.bearer.teid_local, 2, - f_inet_addr(mp_local_hostname_u), omit); - - - /* open5gs up to 1.2.3 won't accept it without ULI, despite not mandatory */ var template (value) TAI tai := { '0'H, '0'H, '1'H, 'F'H, '0'H, '1'H, '0001'O }; var template (value) ECGI ecgi := { '0'H, '0'H, '1'H, 'F'H, '0'H, '1'H, '0'H, 23 }; uli_ie := ts_GTP2C_UserLocInfo(tai := tai, ecgi := ecgi); + return valueof(uli_ie); +} - f_create_session(fteid_c_ie, fteid_u_ie, uli_ie); +function f_s5s8_fteid_c_ie() runs on PGW_Session_CT return FullyQualifiedTEID +{ + var template (value) FullyQualifiedTEID fteid_c_ie; + fteid_c_ie := ts_GTP2C_FTEID(FTEID_IF_S5S8_SGW_GTPC, g_pars.teic_local, 0, + f_inet_addr(mp_local_hostname_c), omit); + return valueof(fteid_c_ie); +} +function f_s5s8_fteid_u_ie() runs on PGW_Session_CT return FullyQualifiedTEID +{ + var template (value) FullyQualifiedTEID fteid_u_ie; + fteid_u_ie := ts_GTP2C_FTEID(FTEID_IF_S5S8_SGW_GTPU, g_pars.bearer.teid_local, 2, + f_inet_addr(mp_local_hostname_u), omit); + return valueof(fteid_u_ie); +} + +/* create a session on the PGW on a S5/S8 interface (from SGW )*/ +function f_s5s8_create_session() runs on PGW_Session_CT { + /* open5gs up to 1.2.3 won't accept it without ULI, despite not mandatory */ + f_create_session(f_s5s8_fteid_c_ie(), + f_s5s8_fteid_u_ie(), + f_s5s8_UserLocationInfo()); + +} + +function f_s2b_fteid_c_ie() runs on PGW_Session_CT return FullyQualifiedTEID +{ + var template (value) FullyQualifiedTEID fteid_c_ie; + fteid_c_ie := ts_GTP2C_FTEID(FTEID_IF_S2b_ePDG_GTPC, g_pars.teic_local, 0, + f_inet_addr(mp_local_hostname_c), omit); + return valueof(fteid_c_ie); +} + +function f_s2b_fteid_u_ie() runs on PGW_Session_CT return FullyQualifiedTEID +{ + var template (value) FullyQualifiedTEID fteid_u_ie; + fteid_u_ie := ts_GTP2C_FTEID(FTEID_IF_S2bU_ePDG_GTPU, g_pars.bearer.teid_local, 5, + f_inet_addr(mp_local_hostname_u), omit); + return valueof(fteid_u_ie); } /* create a session on the PGW on a S2b interface (from ePDG)*/ function f_s2b_create_session(template (omit) APCO apco := omit, template APCO exp_apco := *) runs on PGW_Session_CT { - var template (value) FullyQualifiedTEID fteid_c_ie, fteid_u_ie; - var template (value) UserLocationInfo uli_ie; - - fteid_c_ie := ts_GTP2C_FTEID(FTEID_IF_S2b_ePDG_GTPC, g_pars.teic_local, 0, - f_inet_addr(mp_local_hostname_c), omit); - fteid_u_ie := ts_GTP2C_FTEID(FTEID_IF_S2bU_ePDG_GTPU, g_pars.bearer.teid_local, 5, - f_inet_addr(mp_local_hostname_u), omit); - - var template (value) TAI tai := { '0'H, '0'H, '1'H, 'F'H, '0'H, '1'H, '0001'O }; - var template (value) ECGI ecgi := { '0'H, '0'H, '1'H, 'F'H, '0'H, '1'H, '0'H, 23 }; - uli_ie := ts_GTP2C_UserLocInfo(tai := tai, ecgi := ecgi); - - f_create_session(fteid_c_ie, fteid_u_ie, uli_ie := uli_ie, apco := apco, exp_apco := exp_apco); + f_create_session(f_s2b_fteid_c_ie(), + f_s2b_fteid_u_ie(), + uli_ie := f_s5s8_UserLocationInfo(), + apco := apco, + exp_apco := exp_apco); } diff --git a/smf/SMF_Session_CT_4G.ttcn b/smf/SMF_Session_CT_4G.ttcn index dbde8f4..35a2b5f 100644 --- a/smf/SMF_Session_CT_4G.ttcn +++ b/smf/SMF_Session_CT_4G.ttcn @@ -150,6 +150,21 @@ } } +function f_DIA_handle_create_sesion() runs on SMF_Session_CT +{ + var boolean do_s6b := is_s2b_iface(); + if (do_s6b and DIAMETER[DIA_S6b].checkstate("Connected")) { + as_DIA_S6b_AAR(); + } + if (DIAMETER[DIA_Gx].checkstate("Connected")) { + as_DIA_Gx_CCR(INITIAL_REQUEST); + } + /* FIXME: When on S2b interface, SMF is not using the Gy interface, unknown reason. */ + if (DIAMETER[DIA_Gy].checkstate("Connected")) { + as_DIA_Gy_CCR(INITIAL_REQUEST); + } +} + /* GTPv2C */ private function is_s2b_iface() runs on SMF_Session_CT return boolean { return (g_pars.rat_type == GTP2C_RAT_WLAN or g_pars.rat_type == GTP2C_RAT_Virtual); @@ -209,23 +224,11 @@ return int2bit(pfcp_pdn_type, 3); } -/* create a session on the SMF */ -private function f_create_session(template (value) FullyQualifiedTEID fteid_c_ie, - template (value) FullyQualifiedTEID fteid_u_ie, - template (omit) UserLocationInfo uli_ie := omit, - template (omit) APCO apco := omit, - template APCO exp_apco := *) runs on SMF_Session_CT { - var PDU_GTPCv2 rx; - - /* Defaults used for s5/s8: */ - var boolean do_s6b := false; - var template APN_Restriction apn_restriction := ?; - /* Change behavior when on S2b: */ - if (is_s2b_iface()) { - do_s6b := true; - apn_restriction := omit; - } - +function f_s5s8_tx_create_session_req(template (value) FullyQualifiedTEID fteid_c_ie, + template (value) FullyQualifiedTEID fteid_u_ie, + template (omit) UserLocationInfo uli_ie := omit, + template (omit) APCO apco := omit) +runs on SMF_Session_CT { var template (value) PDU_GTPCv2 g2c := ts_GTP2C_CreateSessionReq(imsi := g_pars.imsi, msisdn := g_pars.msisdn, @@ -240,6 +243,24 @@ servingNetwork := ts_GTP2C_ServingNetwork('001'H, '01F'H), apco := apco); + GTP2.send(g2c); +} + +/* create a session on the SMF */ +private function f_create_session(template (value) FullyQualifiedTEID fteid_c_ie, + template (value) FullyQualifiedTEID fteid_u_ie, + template (omit) UserLocationInfo uli_ie := omit, + template (omit) APCO apco := omit, + template APCO exp_apco := *) runs on SMF_Session_CT { + var PDU_GTPCv2 rx; + + /* Defaults used for s5/s8: */ + var template APN_Restriction apn_restriction := ?; + /* Change behavior when on S2b: */ + if (is_s2b_iface()) { + apn_restriction := omit; + } + /////////// START MUTUAL EXCLUSION ZONE //////////// /* This code block cannot be executed by more than one component at a time because * the RANAP RAB Ass Request triggers the IUT to send PFCP Session Establishment @@ -253,17 +274,9 @@ * expected to have SEID set to 0, as per 3GPP TS 29.244, section 7.2.2.4.2. */ f_PFCPEM_subscribe_seid(c_SEID0); - GTP2.send(g2c); - if (do_s6b and DIAMETER[DIA_S6b].checkstate("Connected")) { - as_DIA_S6b_AAR(); - } - if (DIAMETER[DIA_Gx].checkstate("Connected")) { - as_DIA_Gx_CCR(INITIAL_REQUEST); - } - /* FIXME: When on S2b interface, SMF is not using the Gy interface, unknown reason. */ - if (DIAMETER[DIA_Gy].checkstate("Connected")) { - as_DIA_Gy_CCR(INITIAL_REQUEST); - } + f_s5s8_tx_create_session_req(fteid_c_ie, fteid_u_ie, uli_ie, apco); + + f_DIA_handle_create_sesion(); /* Expect PFCP Session Establishment Request. */ as_pfcp_sess_est_req(); @@ -340,42 +353,64 @@ } -/* create a session on the SMF on a S5/S8 interface (from SGW )*/ -function f_s5s8_create_session() runs on SMF_Session_CT { - var template (value) FullyQualifiedTEID fteid_c_ie, fteid_u_ie; +function f_s5s8_UserLocationInfo() runs on SMF_Session_CT return UserLocationInfo +{ var template (value) UserLocationInfo uli_ie; - - fteid_c_ie := ts_GTP2C_FTEID(FTEID_IF_S5S8_SGW_GTPC, g_pars.teic_local, 0, - f_inet_addr(mp_local_hostname_c), omit); - fteid_u_ie := ts_GTP2C_FTEID(FTEID_IF_S5S8_SGW_GTPU, g_pars.bearer.teid_local, 2, - f_inet_addr(mp_local_hostname_u), omit); - - - /* open5gs up to 1.2.3 won't accept it without ULI, despite not mandatory */ var template (value) TAI tai := { '0'H, '0'H, '1'H, 'F'H, '0'H, '1'H, '0001'O }; var template (value) ECGI ecgi := { '0'H, '0'H, '1'H, 'F'H, '0'H, '1'H, '0'H, 23 }; uli_ie := ts_GTP2C_UserLocInfo(tai := tai, ecgi := ecgi); + return valueof(uli_ie); +} - f_create_session(fteid_c_ie, fteid_u_ie, uli_ie); +function f_s5s8_fteid_c_ie() runs on SMF_Session_CT return FullyQualifiedTEID +{ + var template (value) FullyQualifiedTEID fteid_c_ie; + fteid_c_ie := ts_GTP2C_FTEID(FTEID_IF_S5S8_SGW_GTPC, g_pars.teic_local, 0, + f_inet_addr(mp_local_hostname_c), omit); + return valueof(fteid_c_ie); +} +function f_s5s8_fteid_u_ie() runs on SMF_Session_CT return FullyQualifiedTEID +{ + var template (value) FullyQualifiedTEID fteid_u_ie; + fteid_u_ie := ts_GTP2C_FTEID(FTEID_IF_S5S8_SGW_GTPU, g_pars.bearer.teid_local, 2, + f_inet_addr(mp_local_hostname_u), omit); + return valueof(fteid_u_ie); +} + +/* create a session on the SMF on a S5/S8 interface (from SGW )*/ +function f_s5s8_create_session() runs on SMF_Session_CT { + /* open5gs up to 1.2.3 won't accept it without ULI, despite not mandatory */ + f_create_session(f_s5s8_fteid_c_ie(), + f_s5s8_fteid_u_ie(), + f_s5s8_UserLocationInfo()); + +} + +function f_s2b_fteid_c_ie() runs on SMF_Session_CT return FullyQualifiedTEID +{ + var template (value) FullyQualifiedTEID fteid_c_ie; + fteid_c_ie := ts_GTP2C_FTEID(FTEID_IF_S2b_ePDG_GTPC, g_pars.teic_local, 0, + f_inet_addr(mp_local_hostname_c), omit); + return valueof(fteid_c_ie); +} + +function f_s2b_fteid_u_ie() runs on SMF_Session_CT return FullyQualifiedTEID +{ + var template (value) FullyQualifiedTEID fteid_u_ie; + fteid_u_ie := ts_GTP2C_FTEID(FTEID_IF_S2bU_ePDG_GTPU, g_pars.bearer.teid_local, 5, + f_inet_addr(mp_local_hostname_u), omit); + return valueof(fteid_u_ie); } /* create a session on the SMF on a S2b interface (from ePDG)*/ function f_s2b_create_session(template (omit) APCO apco := omit, template APCO exp_apco := *) runs on SMF_Session_CT { - var template (value) FullyQualifiedTEID fteid_c_ie, fteid_u_ie; - var template (value) UserLocationInfo uli_ie; - - fteid_c_ie := ts_GTP2C_FTEID(FTEID_IF_S2b_ePDG_GTPC, g_pars.teic_local, 0, - f_inet_addr(mp_local_hostname_c), omit); - fteid_u_ie := ts_GTP2C_FTEID(FTEID_IF_S2bU_ePDG_GTPU, g_pars.bearer.teid_local, 5, - f_inet_addr(mp_local_hostname_u), omit); - - var template (value) TAI tai := { '0'H, '0'H, '1'H, 'F'H, '0'H, '1'H, '0001'O }; - var template (value) ECGI ecgi := { '0'H, '0'H, '1'H, 'F'H, '0'H, '1'H, '0'H, 23 }; - uli_ie := ts_GTP2C_UserLocInfo(tai := tai, ecgi := ecgi); - - f_create_session(fteid_c_ie, fteid_u_ie, uli_ie := uli_ie, apco := apco, exp_apco := exp_apco); + f_create_session(f_s2b_fteid_c_ie(), + f_s2b_fteid_u_ie(), + uli_ie := f_s5s8_UserLocationInfo(), + apco := apco, + exp_apco := exp_apco); } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43895?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I07896c37d06014873b120f87457f99f529f4601a Gerrit-Change-Number: 43895 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: GTPv2_Templates: Allow passing servingNetwork IE
by pespin 15 Oct '26

15 Oct '26
pespin has uploaded a new patch set (#2). ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43894?usp=email ) Change subject: GTPv2_Templates: Allow passing servingNetwork IE ...................................................................... GTPv2_Templates: Allow passing servingNetwork IE Change-Id: I627652f5c08db1de4d541ba3dfc950b7e75d865b --- M library/GTPv2_Templates.ttcn M pgw/PGW_Session_CT.ttcn M smf/SMF_Session_CT_4G.ttcn 3 files changed, 12 insertions(+), 7 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/94/43894/2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43894?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I627652f5c08db1de4d541ba3dfc950b7e75d865b Gerrit-Change-Number: 43894 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-CC: Jenkins Builder
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • ...
  • 125
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.