Change in osmo-bsc[master]: vty: add 'mscpool roundrobin next' for ttcn3 tests

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 gerrit-no-reply at lists.osmocom.org
Wed Jun 10 15:57:14 UTC 2020


neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/18767 )


Change subject: vty: add 'mscpool roundrobin next' for ttcn3 tests
......................................................................

vty: add 'mscpool roundrobin next' for ttcn3 tests

In the ttcn3 tests, the MSC round robin algorithm is affected by what tests ran
before, so an osmo-bsc test needs this to reset the round robin to get
predictable behavior to test against.

Change-Id: I2155d906505a26744966f442ffb1e87a6a9b494c
---
M src/osmo-bsc/osmo_bsc_vty.c
1 file changed, 13 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/67/18767/1

diff --git a/src/osmo-bsc/osmo_bsc_vty.c b/src/osmo-bsc/osmo_bsc_vty.c
index 63744d5..719198f 100644
--- a/src/osmo-bsc/osmo_bsc_vty.c
+++ b/src/osmo-bsc/osmo_bsc_vty.c
@@ -914,6 +914,18 @@
 	return CMD_SUCCESS;
 }
 
+DEFUN(mscpool_roundrobin_next, mscpool_roundrobin_next_cmd,
+      "mscpool roundrobin next " MSC_NR_RANGE,
+      "MSC pooling: load balancing across multiple MSCs.\n"
+      "Adjust current state of the MSC round-robin algorithm (for testing).\n"
+      "Set the MSC nr to direct the next new subscriber to (for testing).\n"
+      "MSC number, as in the config file; if the number does not exist,"
+      " the round-robin continues to the next valid number.\n")
+{
+	bsc_gsmnet->mscs_round_robin_next_nr = atoi(argv[0]);
+	return CMD_SUCCESS;
+}
+
 int bsc_vty_init_extra(void)
 {
 	struct gsm_network *net = bsc_gsmnet;
@@ -978,6 +990,7 @@
 	install_element_ve(&show_nri_cmd);
 
 	install_element(ENABLE_NODE, &gen_position_trap_cmd);
+	install_element(ENABLE_NODE, &mscpool_roundrobin_next_cmd);
 
 	install_element(CFG_LOG_NODE, &logging_fltr_imsi_cmd);
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/18767
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I2155d906505a26744966f442ffb1e87a6a9b494c
Gerrit-Change-Number: 18767
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200610/cc189137/attachment.htm>


More information about the gerrit-log mailing list