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 -----
  • December
  • November
  • 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

  • 1 participants
  • 97203 discussions
[XS] Change in osmo-sgsn[master]: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen
by laforge 02 Dec '26

02 Dec '26
Attention is currently required from: bucketking657, neels. laforge has posted comments on this change by bucketking657. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/44223?usp=email ) Change subject: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/44223?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-sgsn Gerrit-Branch: master Gerrit-Change-Id: I0535eedc5a01f8917b0f8bc5af46240f2153d8ab Gerrit-Change-Number: 44223 Gerrit-PatchSet: 1 Gerrit-Owner: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de> Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de> Gerrit-Attention: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Comment-Date: Wed, 02 Dec 2026 14:45:37 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in ...pyosmocom[master]: add bertlv_encode()
by laforge 02 Dec '26

02 Dec '26
Attention is currently required from: neels. laforge has posted comments on this change by neels. ( https://gerrit.osmocom.org/c/python/pyosmocom/+/44189?usp=email ) Change subject: add bertlv_encode() ...................................................................... Patch Set 1: (1 comment) File src/osmocom/tlv.py: https://gerrit.osmocom.org/c/python/pyosmocom/+/44189/comment/a5013840_8b40… : PS1, Line 243: def bertlv_encode(t: int, v: bytes): naming: why not call it bertlv_encode_one like the parse_one below? consistency: why add it for bertlv and not for comprehensiontlv above? -- To view, visit https://gerrit.osmocom.org/c/python/pyosmocom/+/44189?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: python/pyosmocom Gerrit-Branch: master Gerrit-Change-Id: Idc9412f8f9ad4ae9a6babd28031234046a8e9516 Gerrit-Change-Number: 44189 Gerrit-PatchSet: 1 Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: laforge <laforge(a)osmocom.org> Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de> Gerrit-Comment-Date: Wed, 02 Dec 2026 14:45:08 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
1 0
0 0
[S] Change in ...pyosmocom[master]: tlv.py: add bertlv_to_str()
by laforge 02 Dec '26

02 Dec '26
Attention is currently required from: neels. laforge has posted comments on this change by neels. ( https://gerrit.osmocom.org/c/python/pyosmocom/+/44188?usp=email ) Change subject: tlv.py: add bertlv_to_str() ...................................................................... Patch Set 1: Code-Review-1 (1 comment) Patchset: PS1: I'm not quite sure what this tool would provide in terms of utility value that isn't already covered by generic tools like for example the 'unber' command line utility that's already part of asn1c? -- To view, visit https://gerrit.osmocom.org/c/python/pyosmocom/+/44188?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: python/pyosmocom Gerrit-Branch: master Gerrit-Change-Id: I5fd5368c01267de8551d0ad384352971d510935b Gerrit-Change-Number: 44188 Gerrit-PatchSet: 1 Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de> Gerrit-Comment-Date: Wed, 02 Dec 2026 14:44:01 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in osmo-sgsn[master]: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen
by pespin 02 Dec '26

02 Dec '26
Attention is currently required from: bucketking657. pespin has posted comments on this change by bucketking657. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/44223?usp=email ) Change subject: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen ...................................................................... Patch Set 1: (1 comment) Patchset: PS1: I'd also like @nhofmeyr@sysmocom.de to have a look at this one. -- To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/44223?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-sgsn Gerrit-Branch: master Gerrit-Change-Id: I0535eedc5a01f8917b0f8bc5af46240f2153d8ab Gerrit-Change-Number: 44223 Gerrit-PatchSet: 1 Gerrit-Owner: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Comment-Date: Wed, 02 Dec 2026 14:31:43 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
1 0
0 0
[M] Change in osmo-msc[master]: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen
by pespin 02 Dec '26

02 Dec '26
Attention is currently required from: bucketking657, neels. pespin has posted comments on this change by bucketking657. ( https://gerrit.osmocom.org/c/osmo-msc/+/44220?usp=email ) Change subject: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen ...................................................................... Patch Set 2: Code-Review+1 (1 comment) Patchset: PS2: I'd also like @nhofmeyr@sysmocom.de to have a look at this one. -- To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/44220?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-msc Gerrit-Branch: master Gerrit-Change-Id: I24b71c8d568477680f735dc4044ec267385156ab Gerrit-Change-Number: 44220 Gerrit-PatchSet: 2 Gerrit-Owner: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de> Gerrit-Attention: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Comment-Date: Wed, 02 Dec 2026 14:31:17 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in osmo-sgsn[master]: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen
by fixeria 02 Dec '26

02 Dec '26
Attention is currently required from: bucketking657. fixeria has posted comments on this change by bucketking657. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/44223?usp=email ) Change subject: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/44223?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-sgsn Gerrit-Branch: master Gerrit-Change-Id: I0535eedc5a01f8917b0f8bc5af46240f2153d8ab Gerrit-Change-Number: 44223 Gerrit-PatchSet: 1 Gerrit-Owner: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Comment-Date: Wed, 02 Dec 2026 14:03:20 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in osmo-msc[master]: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen
by fixeria 02 Dec '26

02 Dec '26
Attention is currently required from: bucketking657, neels, pespin. fixeria has posted comments on this change by bucketking657. ( https://gerrit.osmocom.org/c/osmo-msc/+/44220?usp=email ) Change subject: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen ...................................................................... Patch Set 2: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/44220?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-msc Gerrit-Branch: master Gerrit-Change-Id: I24b71c8d568477680f735dc4044ec267385156ab Gerrit-Change-Number: 44220 Gerrit-PatchSet: 2 Gerrit-Owner: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de> Gerrit-Attention: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Comment-Date: Wed, 02 Dec 2026 14:03:00 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in osmo-msc[master]: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen
by bucketking657 02 Dec '26

02 Dec '26
Attention is currently required from: fixeria, neels, pespin. bucketking657 has posted comments on this change by bucketking657. ( https://gerrit.osmocom.org/c/osmo-msc/+/44220?usp=email ) Change subject: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen ...................................................................... Patch Set 2: (2 comments) Commit Message: https://gerrit.osmocom.org/c/osmo-msc/+/44220/comment/b7efd3ae_6c3f4f8b?usp… : PS1, Line 15: osmo-sgsn's copy of libvlr has the same unchecked call, but osmo-sgsn > Can you please submit a similar fix for osmo-sgsn? Mentioning in the commit description it's a port […] Done and ported in https://gerrit.osmocom.org/c/osmo-sgsn/+/44223 File tests/msc_vlr/msc_vlr_test_no_authen.c: https://gerrit.osmocom.org/c/osmo-msc/+/44220/comment/58a03c63_9e9fbe05?usp… : PS1, Line 968: static void test_no_authen_tmsi_nri_no_fit() > (not sure why the linter is not posting comments as it used to) […] Function header updated and linter now passing in PS2 -- To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/44220?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-msc Gerrit-Branch: master Gerrit-Change-Id: I24b71c8d568477680f735dc4044ec267385156ab Gerrit-Change-Number: 44220 Gerrit-PatchSet: 2 Gerrit-Owner: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de> Gerrit-Comment-Date: Wed, 02 Dec 2026 13:37:18 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <pespin(a)sysmocom.de> Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
1 0
0 0
[XS] Change in libosmo-sigtran[master]: tcap_as_loadshare: fix typo in comment
by lynxis 02 Dec '26

02 Dec '26
lynxis has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/44004?usp=email ) ( 1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: tcap_as_loadshare: fix typo in comment ...................................................................... tcap_as_loadshare: fix typo in comment Change-Id: I5feb805cc609c55adc1bb31b4b3479e1005959e3 --- M src/tcap_as_loadshare.c 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: pespin: Looks good to me, approved Jenkins Builder: Verified diff --git a/src/tcap_as_loadshare.c b/src/tcap_as_loadshare.c index 4f1b10c..8dc20c6 100644 --- a/src/tcap_as_loadshare.c +++ b/src/tcap_as_loadshare.c @@ -1066,7 +1066,7 @@ return (tid >= tcrng->tid_start) && (tid <= tcrng->tid_end); } -/** Checks if a tid rnage overlaps with another range +/** Checks if a tid range overlaps with another range * * @param a * @param tid_start -- To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/44004?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: libosmo-sigtran Gerrit-Branch: master Gerrit-Change-Id: I5feb805cc609c55adc1bb31b4b3479e1005959e3 Gerrit-Change-Number: 44004 Gerrit-PatchSet: 3 Gerrit-Owner: lynxis <lynxis(a)fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: lynxis <lynxis(a)fe80.eu> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[M] Change in libosmo-sigtran[master]: tcap_as_loadshare: add TCAP IPA MT_TID_ACCEPT_NEW_TRAN
by lynxis 02 Dec '26

02 Dec '26
lynxis has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/43999?usp=email ) Change subject: tcap_as_loadshare: add TCAP IPA MT_TID_ACCEPT_NEW_TRAN ...................................................................... tcap_as_loadshare: add TCAP IPA MT_TID_ACCEPT_NEW_TRAN With MT_TID_ACCEPT_NEW_TRANS a TCAP loadsharing ASP can control if it receives new TCAP transactions (TCAP Begin messages). When disabled, a TCAP loadsharing ASP will still receive TCAP transaction inside their TCAP range as well transaction associated via transaction tracking. Related: SYS#8283 Change-Id: Id4e7bb022a0c8b52369f6ded2729cf6cf8679556 --- M src/ss7_asp.c M src/ss7_asp.h M src/tcap_as_loadshare.c M src/tcap_as_loadshare.h M src/tcap_as_loadshare_vty.c 5 files changed, 101 insertions(+), 7 deletions(-) Approvals: pespin: Looks good to me, approved Jenkins Builder: Verified diff --git a/src/ss7_asp.c b/src/ss7_asp.c index 63038d9..bb2130c 100644 --- a/src/ss7_asp.c +++ b/src/ss7_asp.c @@ -58,6 +58,7 @@ #include "ss7_internal.h" #include "ss7_xua_srv.h" #include "ss7_qos_class.h" +#include "tcap_as_loadshare.h" #include "xua_asp_fsm.h" #include "xua_as_fsm.h" #include "xua_lm_sap.h" @@ -778,6 +779,11 @@ /* The SUA code internally needs SCCP to work */ if (proto == OSMO_SS7_ASP_PROT_SUA) osmo_ss7_ensure_sccp(inst); + +#ifdef WITH_TCAP_LOADSHARING + tcap_asp_init(asp); +#endif /* WITH_TCAP_LOADSHARING */ + return asp; } diff --git a/src/ss7_asp.h b/src/ss7_asp.h index b7f0058..6e1d056 100644 --- a/src/ss7_asp.h +++ b/src/ss7_asp.h @@ -105,6 +105,8 @@ #ifdef WITH_TCAP_LOADSHARING struct { bool enabled; + /* is this ASP available for new TCAP sessions (Begin) */ + bool accept_new_trans; } tcap; #endif /* WITH_TCAP_LOADSHARING */ diff --git a/src/tcap_as_loadshare.c b/src/tcap_as_loadshare.c index 8dc20c6..a163629 100644 --- a/src/tcap_as_loadshare.c +++ b/src/tcap_as_loadshare.c @@ -260,7 +260,9 @@ for (unsigned int i = 0; i < as->num_assoc_asps; i++) { assoc = ss7_as_asp_assoc_llist_round_robin(as, &as->tcap.last_asp_idx_sent); - if (assoc && osmo_ss7_asp_active(assoc->asp) && assoc->asp->tcap.enabled) + if (assoc && osmo_ss7_asp_active(assoc->asp) && + assoc->asp->tcap.enabled && + assoc->asp->tcap.accept_new_trans) return assoc->asp; } return NULL; @@ -807,6 +809,7 @@ MT_TID_ADD_RANGE = 0x01, MT_TID_ACK = 0x02, MT_TID_NACK = 0x03, + MT_TID_ACCEPT_NEW_TRANS = 0x04, }; enum ipa_tcap_routing_nack_error { @@ -839,6 +842,14 @@ uint8_t err; } __attribute__((packed)); +/* Controls if the ASP may receive new transaction (TCAP Begin). + * + * When the ASP disabled new transaction, it still receive TCAP transactions which matches + * the DTID (TCAP Continue/End) or if transaction tracking matches an ongoing transaction. */ +struct ipa_tcap_routing_accept_new_trans { + uint8_t accept; +} __attribute__((packed)); + static struct msgb *ipa_tcap_routing_alloc(uint32_t seq_nr, uint8_t mt) { struct ipa_tcap_routing_hdr hdr = { @@ -968,6 +979,25 @@ rc = ipa_tx_tcap_routing_ack(asp, osmo_ntohl(hdr->seq)); break; } + case MT_TID_ACCEPT_NEW_TRANS: + if (msgb_length(msg) < sizeof(*hdr) + sizeof(struct ipa_tcap_routing_accept_new_trans)) { + LOGPASP(asp, DLTCAP, LOGL_ERROR, "TCAP routing message is too small (accept new transactions)\n"); + rc = -EINVAL; + goto out; + } + + msgb_pull(msg, sizeof(*hdr)); + + asp->tcap.accept_new_trans = msgb_pull_u8(msg) & 0x1; + if (asp->tcap.accept_new_trans) + LOGPASP(asp, DLTCAP, LOGL_INFO, + "TCAP New transaction command: ASP will receive new TCAP transactions\n"); + else + LOGPASP(asp, DLTCAP, LOGL_INFO, + "TCAP New transaction command: ASP won't receive new TCAP transactions\n"); + + rc = ipa_tx_tcap_routing_ack(asp, osmo_ntohl(hdr->seq)); + break; case MT_TID_ACK: /* shouldn't received from other end */ case MT_TID_NACK: /* shouldn't received from other end */ default: @@ -1102,6 +1132,9 @@ if (as->tcap.contains_pc || as->tcap.contains_ssn) tcap_range_as_update_pc_ssn(as); + + /* Reset accept new transaction to default */ + asp->tcap.accept_new_trans = true; } /** When the ASP goes down @@ -1157,3 +1190,8 @@ tcap_trans_track_garbage_collect_stop(as); tcap_trans_track_entries_free_all(as); } + +void tcap_asp_init(struct osmo_ss7_asp *asp) +{ + asp->tcap.accept_new_trans = true; +} diff --git a/src/tcap_as_loadshare.h b/src/tcap_as_loadshare.h index f790493..a89ca09 100644 --- a/src/tcap_as_loadshare.h +++ b/src/tcap_as_loadshare.h @@ -35,6 +35,8 @@ /* Traffic STP -> AS -> ASP (Tx path) Loadshare towards the TCAP routing AS */ int tcap_as_select_asp_loadshare(struct osmo_ss7_asp **asp, struct osmo_ss7_as *as, const struct xua_msg *xua); +void tcap_asp_init(struct osmo_ss7_asp *asp); + /* When the ASP got dissassociated */ void tcap_as_del_asp(struct osmo_ss7_as *as, struct osmo_ss7_asp *asp); diff --git a/src/tcap_as_loadshare_vty.c b/src/tcap_as_loadshare_vty.c index e6506e8..243711c 100644 --- a/src/tcap_as_loadshare_vty.c +++ b/src/tcap_as_loadshare_vty.c @@ -42,7 +42,12 @@ static int show_one_tcap_range(struct vty *vty, const struct osmo_ss7_as *as, const struct tcap_range *tcrng) { - vty_out(vty, "%-7u %-7u %3u %-13s %-12s%s", tcrng->tid_start, tcrng->tid_end, tcrng->ssn, osmo_ss7_pointcode_print(as->inst, tcrng->pc), tcrng->asp->cfg.name, VTY_NEWLINE); + vty_out(vty, "%-7u %-7u %3u %-13s %-12s %-9s%s", + tcrng->tid_start, tcrng->tid_end, + tcrng->ssn, osmo_ss7_pointcode_print(as->inst, tcrng->pc), + tcrng->asp->cfg.name, + tcrng->asp->tcap.accept_new_trans ? "YES" : "NO", + VTY_NEWLINE); return CMD_SUCCESS; } @@ -72,14 +77,13 @@ return CMD_WARNING; } - vty_out(vty, "Tid Min Tid Max SSN PC ASP Name %s", VTY_NEWLINE); - vty_out(vty, "------- ------- --- ------------- ------------%s", VTY_NEWLINE); + vty_out(vty, "Tid Min Tid Max SSN PC ASP Name New trans%s", VTY_NEWLINE); + vty_out(vty, "------- ------- --- ------------- ------------ ---------%s", VTY_NEWLINE); hash_for_each(as->tcap.tid_ranges, i, tcrng, list) { show_one_tcap_range(vty, as, tcrng); } - return CMD_SUCCESS; } @@ -112,8 +116,8 @@ return CMD_WARNING; } - vty_out(vty, "Tid Min Tid Max SSN PC ASP Name %s", VTY_NEWLINE); - vty_out(vty, "------- ------- --- ------------- ------------%s", VTY_NEWLINE); + vty_out(vty, "Tid Min Tid Max SSN PC ASP Name New trans%s", VTY_NEWLINE); + vty_out(vty, "------- ------- --- ------------- ------------ ---------%s", VTY_NEWLINE); hash_for_each(as->tcap.tid_ranges, i, tcrng, list) { if (tid < tcrng->tid_start || tid > tcrng->tid_end) @@ -121,6 +125,47 @@ show_one_tcap_range(vty, as, tcrng); } + return CMD_SUCCESS; +} + +DEFUN(show_cs7_as_name_tcap_loadshare, show_cs7_as_name_tcap_loadshare_cmd, + "show cs7 instance <0-15> as name AS_NAME tcap loadshare", + SHOW_STR CS7_STR INST_STR INST_STR "Application Server (AS)\n" + "Look up AS with a given name\n" + "Name of the Application Server (AS)\n" + "Show tcap loadshare\n" + "Show tcap loadshare\n") +{ + int id = atoi(argv[0]); + const char *as_name = argv[1]; + struct osmo_ss7_instance *inst; + struct osmo_ss7_as *as = NULL; + struct ss7_as_asp_assoc *assoc; + + inst = osmo_ss7_instance_find(id); + if (!inst) { + vty_out(vty, "No SS7 instance %d found%s", id, VTY_NEWLINE); + return CMD_WARNING; + } + + as = osmo_ss7_as_find_by_name(inst, as_name); + if (!as) { + vty_out(vty, "No AS %s found%s", as_name, VTY_NEWLINE); + return CMD_WARNING; + } + + vty_out(vty, "AS ASP Name Loadshare%s", VTY_NEWLINE); + vty_out(vty, "-------------- -------------- ---------%s", VTY_NEWLINE); + + llist_for_each_entry(assoc, &as->assoc_asp_list, as_entry) { + if (!assoc->asp->tcap.enabled) + continue; + + vty_out(vty, "%-14s %-14s %-9s%s", + as_name, assoc->asp->cfg.name, + assoc->asp->tcap.accept_new_trans ? "Yes" : "No", + VTY_NEWLINE); + } return CMD_SUCCESS; } @@ -129,4 +174,5 @@ { install_lib_element_ve(&show_cs7_as_name_tcapranges_cmd); install_lib_element_ve(&show_cs7_as_name_tcapranges_tid_cmd); + install_lib_element_ve(&show_cs7_as_name_tcap_loadshare_cmd); } -- To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/43999?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: libosmo-sigtran Gerrit-Branch: master Gerrit-Change-Id: Id4e7bb022a0c8b52369f6ded2729cf6cf8679556 Gerrit-Change-Number: 43999 Gerrit-PatchSet: 6 Gerrit-Owner: lynxis <lynxis(a)fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: lynxis <lynxis(a)fe80.eu> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • ...
  • 9721
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.