pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-smlc/+/40678?usp=email )
Change subject: vty: Create smlc_vty.c
......................................................................
vty: Create smlc_vty.c
We already have a smlc_vty.h file, but no usual smlc_vty.c file where we
put commands or init functions existed yet.
Change-Id: I6899602c3a6e22ee6ff93540466f839b2bf5ccc1
---
M include/osmocom/smlc/smlc_vty.h
M src/osmo-smlc/Makefile.am
M src/osmo-smlc/smlc_main.c
A src/osmo-smlc/smlc_vty.c
4 files changed, 52 insertions(+), 14 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, approved
diff --git a/include/osmocom/smlc/smlc_vty.h b/include/osmocom/smlc/smlc_vty.h
index d5d82f8..1c53a25 100644
--- a/include/osmocom/smlc/smlc_vty.h
+++ b/include/osmocom/smlc/smlc_vty.h
@@ -5,3 +5,5 @@
enum smlc_vty_node {
CELLS_NODE = _LAST_OSMOVTY_NODE + 1,
};
+
+void smlc_vty_init(struct vty_app_info *vty_app_info);
diff --git a/src/osmo-smlc/Makefile.am b/src/osmo-smlc/Makefile.am
index 585d1de..185a8d9 100644
--- a/src/osmo-smlc/Makefile.am
+++ b/src/osmo-smlc/Makefile.am
@@ -32,6 +32,7 @@
smlc_loc_req.c \
smlc_main.c \
smlc_subscr.c \
+ smlc_vty.c \
$(NULL)
osmo_smlc_LDADD = \
diff --git a/src/osmo-smlc/smlc_main.c b/src/osmo-smlc/smlc_main.c
index f72ec4b..4ec0f65 100644
--- a/src/osmo-smlc/smlc_main.c
+++ b/src/osmo-smlc/smlc_main.c
@@ -19,7 +19,6 @@
#include <osmocom/ctrl/control_cmd.h>
#include <osmocom/ctrl/control_if.h>
#include <osmocom/ctrl/ports.h>
-#include <osmocom/ctrl/control_vty.h>
#include <osmocom/core/application.h>
#include <osmocom/core/linuxlist.h>
@@ -29,9 +28,6 @@
#include <osmocom/core/rate_ctr.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/ports.h>
-#include <osmocom/vty/logging.h>
-#include <osmocom/vty/command.h>
-#include <osmocom/vty/misc.h>
#include <osmocom/sigtran/xua_msg.h>
#include <osmocom/sigtran/sccp_sap.h>
@@ -40,7 +36,7 @@
#include <osmocom/smlc/debug.h>
#include <osmocom/smlc/smlc_data.h>
#include <osmocom/smlc/sccp_lb_inst.h>
-#include <osmocom/smlc/cell_locations.h>
+#include <osmocom/smlc/smlc_vty.h>
#define _GNU_SOURCE
#include <getopt.h>
@@ -241,17 +237,11 @@
g_smlc = smlc_state_alloc(tall_smlc_ctx);
- /* This needs to precede handle_options() */
- vty_init(&vty_info);
- logging_vty_add_cmds();
- osmo_talloc_vty_add_cmds();
- ctrl_vty_init(tall_smlc_ctx);
- cell_locations_vty_init();
-
/* Initialize SS7 */
OSMO_ASSERT(osmo_ss7_init() == 0);
- osmo_ss7_vty_init_asp(tall_smlc_ctx);
- osmo_sccp_vty_init();
+
+ /* This needs to precede handle_options() */
+ smlc_vty_init(&vty_info);
/* parse options */
handle_options(argc, argv);
diff --git a/src/osmo-smlc/smlc_vty.c b/src/osmo-smlc/smlc_vty.c
new file mode 100644
index 0000000..36ca47e
--- /dev/null
+++ b/src/osmo-smlc/smlc_vty.c
@@ -0,0 +1,45 @@
+/*
+ * (C) 2025 by sysmocom - s.f.m.c. GmbH <info(a)sysmocom.de>
+ * All Rights Reserved
+ *
+ * SPDX-License-Identifier: AGPL-3.0+
+ *
+ * Author: Pau Espin Pedrol
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <osmocom/ctrl/control_vty.h>
+#include <osmocom/vty/logging.h>
+#include <osmocom/vty/misc.h>
+
+#include <osmocom/sigtran/osmo_ss7.h>
+#include <osmocom/sigtran/sccp_sap.h>
+
+#include <osmocom/smlc/cell_locations.h>
+
+void smlc_vty_init(struct vty_app_info *vty_app_info)
+{
+ vty_init(vty_app_info);
+
+ logging_vty_add_cmds();
+ osmo_talloc_vty_add_cmds();
+ ctrl_vty_init(vty_app_info->tall_ctx);
+ osmo_fsm_vty_add_cmds();
+
+ osmo_ss7_vty_init_asp(vty_app_info->tall_ctx);
+ osmo_sccp_vty_init();
+
+ cell_locations_vty_init();
+}
--
To view, visit https://gerrit.osmocom.org/c/osmo-smlc/+/40678?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-smlc
Gerrit-Branch: master
Gerrit-Change-Id: I6899602c3a6e22ee6ff93540466f839b2bf5ccc1
Gerrit-Change-Number: 40678
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Attention is currently required from: pespin.
Hello Jenkins Builder, fixeria, laforge,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-smlc/+/40665?usp=email
to look at the new patch set (#5).
The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder
The change is no longer submittable: Verified is unsatisfied now.
Change subject: smlc: Initial implementation of N-PCSTATE.ind
......................................................................
smlc: Initial implementation of N-PCSTATE.ind
Related: OS#5917
Change-Id: Id034a0c4d8bff0647a64658480dfa9b4cea563de
---
M include/osmocom/smlc/lb_peer.h
M src/osmo-smlc/lb_peer.c
M src/osmo-smlc/sccp_lb_inst.c
3 files changed, 155 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-smlc refs/changes/65/40665/5
--
To view, visit https://gerrit.osmocom.org/c/osmo-smlc/+/40665?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-smlc
Gerrit-Branch: master
Gerrit-Change-Id: Id034a0c4d8bff0647a64658480dfa9b4cea563de
Gerrit-Change-Number: 40665
Gerrit-PatchSet: 5
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Attention is currently required from: fixeria, laforge.
Hello Jenkins Builder, laforge,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-smlc/+/40678?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Code-Review+1 by laforge, Verified+1 by Jenkins Builder
Change subject: vty: Create smlc_vty.c
......................................................................
vty: Create smlc_vty.c
We already have a smlc_vty.h file, but no usual smlc_vty.c file where we
put commands or init functions existed yet.
Change-Id: I6899602c3a6e22ee6ff93540466f839b2bf5ccc1
---
M include/osmocom/smlc/smlc_vty.h
M src/osmo-smlc/Makefile.am
M src/osmo-smlc/smlc_main.c
A src/osmo-smlc/smlc_vty.c
4 files changed, 52 insertions(+), 14 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-smlc refs/changes/78/40678/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-smlc/+/40678?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-smlc
Gerrit-Branch: master
Gerrit-Change-Id: I6899602c3a6e22ee6ff93540466f839b2bf5ccc1
Gerrit-Change-Number: 40678
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Attention is currently required from: pespin.
Hello Jenkins Builder, fixeria, laforge,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-smlc/+/40679?usp=email
to look at the new patch set (#4).
The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder
The change is no longer submittable: Verified is unsatisfied now.
Change subject: Introduce stats msc.ran_peers.{total,active}
......................................................................
Introduce stats msc.ran_peers.{total,active}
osmo_stats_init() was already being called despite no stats were being
used.
Change-Id: Ib01576036f34ac7f21c5bce0155b50932eb9b72a
---
M include/osmocom/smlc/smlc_data.h
M src/osmo-smlc/lb_peer.c
M src/osmo-smlc/smlc_data.c
M src/osmo-smlc/smlc_vty.c
4 files changed, 55 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-smlc refs/changes/79/40679/4
--
To view, visit https://gerrit.osmocom.org/c/osmo-smlc/+/40679?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-smlc
Gerrit-Branch: master
Gerrit-Change-Id: Ib01576036f34ac7f21c5bce0155b50932eb9b72a
Gerrit-Change-Number: 40679
Gerrit-PatchSet: 4
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Attention is currently required from: lynxis lazus, pespin.
Hello Jenkins Builder, lynxis lazus,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-iuh/+/40643?usp=email
to look at the new patch set (#3).
The following approvals got outdated and were removed:
Verified-1 by Jenkins Builder
Change subject: iu_client: Initial N-PCSTATE.ind support
......................................................................
iu_client: Initial N-PCSTATE.ind support
There's currently no way to submit the indication to upper layers (app).
It's not worth changing the API now since anyway sole user of this API
(osmo-sgsn) will actually merged the implementation directly and get rid
of this layer at some point.
Related: OS#5487
Related: OS#3403
Change-Id: I36818ca9d2ef42a68698e5c3b66367207d177b67
---
M src/iu_client.c
1 file changed, 126 insertions(+), 9 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/43/40643/3
--
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/40643?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I36818ca9d2ef42a68698e5c3b66367207d177b67
Gerrit-Change-Number: 40643
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>