[PATCH] osmo-bsc[master]: vty: 'show bts': list the TRXs' ARFCNs / MAIO+HSN

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Thu Feb 15 17:02:48 UTC 2018


Hello Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/6478

to look at the new patch set (#2).

vty: 'show bts': list the TRXs' ARFCNs / MAIO+HSN

Change-Id: I56ee2edc7473dc5e9f3c3463194369024cd64995
---
M src/libbsc/bsc_vty.c
1 file changed, 12 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/78/6478/2

diff --git a/src/libbsc/bsc_vty.c b/src/libbsc/bsc_vty.c
index e48275d..0e39b39 100644
--- a/src/libbsc/bsc_vty.c
+++ b/src/libbsc/bsc_vty.c
@@ -270,6 +270,7 @@
 {
 	struct pchan_load pl;
 	unsigned long long sec;
+	struct gsm_bts_trx *trx;
 
 	vty_out(vty, "BTS %u is of %s type in band %s, has CI %u LAC %u, "
 		"BSIC %u (NCC=%u, BCC=%u) and %u TRX%s",
@@ -280,6 +281,17 @@
 		bts->num_trx, VTY_NEWLINE);
 	vty_out(vty, "  Description: %s%s",
 		bts->description ? bts->description : "(null)", VTY_NEWLINE);
+
+	vty_out(vty, "  ARFCNs:");
+	llist_for_each_entry(trx, &bts->trx_list, list) {
+		if (trx->hopping.enabled)
+			vty_out(vty, " hopping{MAIO=%u,HSN=%u}",
+				trx->hopping.maio, trx->hopping.hsn);
+		else
+			vty_out(vty, " %u", trx->arfcn);
+	}
+	vty_out(vty, "%s", VTY_NEWLINE);
+
 	if (strnlen(bts->pcu_version, MAX_VERSION_LENGTH))
 		vty_out(vty, "  PCU version %s connected%s", bts->pcu_version,
 			VTY_NEWLINE);

-- 
To view, visit https://gerrit.osmocom.org/6478
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I56ee2edc7473dc5e9f3c3463194369024cd64995
Gerrit-PatchSet: 2
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list