Change in libosmo-sccp[master]: osmo_ss7_vty.c: implement 'active' filter for show_cs7_as_cmd

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/.

fixeria gerrit-no-reply at lists.osmocom.org
Wed Nov 6 19:52:37 UTC 2019


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/15995 )


Change subject: osmo_ss7_vty.c: implement 'active' filter for show_cs7_as_cmd
......................................................................

osmo_ss7_vty.c: implement 'active' filter for show_cs7_as_cmd

Change-Id: I356d90642a500be6a70f60c8240ce1211fd0d934
---
M src/osmo_ss7_vty.c
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/95/15995/1

diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index 35640df..f70ee52 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -1096,7 +1096,8 @@
 			continue;
 		if (filter && !strcmp(filter, "sua") && as->cfg.proto != OSMO_SS7_ASP_PROT_SUA)
 			continue;
-		/* FIXME: active filter */
+		if (filter && !strcmp(filter, "active") && as->fi.state != XUA_AS_S_ACTIVE)
+			continue;
 		vty_out(vty, "%-12s %-12s %-10u %-13s %4s %13s %3s %5s %4s %10s%s",
 			as->cfg.name, osmo_fsm_inst_state_name(as->fi), as->cfg.routing_key.context,
 			osmo_ss7_pointcode_print(as->inst, as->cfg.routing_key.pc),

-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/15995
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I356d90642a500be6a70f60c8240ce1211fd0d934
Gerrit-Change-Number: 15995
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191106/0da318b7/attachment.htm>


More information about the gerrit-log mailing list