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
Review at https://gerrit.osmocom.org/6479
vty: 'show bts': print neighbor cells
Print out the current neighbor cell list, works both for manual and
automatically populated modes.
Change-Id: I57dae0e01b81a6f028b39f3edcaf430251ca8fe2
---
M src/libbsc/bsc_vty.c
1 file changed, 33 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/79/6479/1
diff --git a/src/libbsc/bsc_vty.c b/src/libbsc/bsc_vty.c
index b4c8885..dcb1357 100644
--- a/src/libbsc/bsc_vty.c
+++ b/src/libbsc/bsc_vty.c
@@ -271,6 +271,9 @@
struct pchan_load pl;
unsigned long long sec;
struct gsm_bts_trx *trx;
+ int i;
+ struct bitvec *bv;
+ int count;
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",
@@ -362,6 +365,36 @@
e1isl_dump_vty(vty, bts->oml_link);
}
+ vty_out(vty, " Neighbor Cells: ");
+ switch (bts->neigh_list_manual_mode) {
+ default:
+ case NL_MODE_AUTOMATIC:
+ vty_out(vty, "Automatic");
+ /* generate_bcch_chan_list() should populate si_common.neigh_list */
+ bv = &bts->si_common.neigh_list;
+ break;
+ case NL_MODE_MANUAL:
+ vty_out(vty, "Manual");
+ bv = &bts->si_common.neigh_list;
+ break;
+ case NL_MODE_MANUAL_SI5SEP:
+ bv = &bts->si_common.si5_neigh_list;
+ vty_out(vty, "Manual (SI5)");
+ break;
+ }
+ vty_out(vty, ", ARFCNs:");
+ count = 0;
+ for (i = 0; i < 1024; i++) {
+ if (!bitvec_get_bit_pos(bv, i))
+ continue;
+ vty_out(vty, " %u", i);
+ count ++;
+ }
+ if (!count)
+ vty_out(vty, " (none)%s", VTY_NEWLINE);
+ else
+ vty_out(vty, " (%d)%s", count, VTY_NEWLINE);
+
/* FIXME: chan_desc */
memset(&pl, 0, sizeof(pl));
bts_chan_load(&pl, bts);
--
To view, visit https://gerrit.osmocom.org/6479
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I57dae0e01b81a6f028b39f3edcaf430251ca8fe2
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>