laforge has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-hnbgw/+/35568?usp=email )
Change subject: Display RANAP state during 'show cnlink'
......................................................................
Display RANAP state during 'show cnlink'
This adds a line to the output showing DISCONNECTED or CONNNECTED
state for each cnlink during the 'show cnlink' VTY command.
Closes: SYS#6741
Change-Id: I6ab7d08fcd0631d31a12418f950c5901a93db43a
---
M src/osmo-hnbgw/cnlink.c
M src/osmo-hnbgw/hnbgw_vty.c
2 files changed, 16 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-hnbgw refs/changes/68/35568/1
diff --git a/src/osmo-hnbgw/cnlink.c b/src/osmo-hnbgw/cnlink.c
index 0ff8163..78cd72f 100644
--- a/src/osmo-hnbgw/cnlink.c
+++ b/src/osmo-hnbgw/cnlink.c
@@ -304,7 +304,7 @@
static struct osmo_fsm_state cnlink_fsm_states[] = {
[CNLINK_ST_DISC] = {
- .name = "DISC",
+ .name = "DISCONNECTED",
.in_event_mask = 0
| S(CNLINK_EV_RX_RESET)
| S(CNLINK_EV_RX_RESET_ACK)
@@ -317,7 +317,7 @@
.action = cnlink_disc_action,
},
[CNLINK_ST_CONN] = {
- .name = "CONN",
+ .name = "CONNECTED",
.in_event_mask = 0
| S(CNLINK_EV_RX_RESET)
| S(CNLINK_EV_RX_RESET_ACK)
diff --git a/src/osmo-hnbgw/hnbgw_vty.c b/src/osmo-hnbgw/hnbgw_vty.c
index 8cbe249..62fe4aa 100644
--- a/src/osmo-hnbgw/hnbgw_vty.c
+++ b/src/osmo-hnbgw/hnbgw_vty.c
@@ -149,6 +149,7 @@
rt = osmo_ss7_route_lookup(ss7, cnlink->remote_addr.pc);
vty_out(vty, " SS7 route: %s%s", osmo_ss7_route_name(rt, true),
VTY_NEWLINE);
+ vty_out(vty, " RANAP state: %s%s",
osmo_fsm_inst_state_name(cnlink->fi), VTY_NEWLINE);
}
DEFUN(show_cnlink, show_cnlink_cmd, "show cnlink",
--
To view, visit
https://gerrit.osmocom.org/c/osmo-hnbgw/+/35568?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: I6ab7d08fcd0631d31a12418f950c5901a93db43a
Gerrit-Change-Number: 35568
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange