[PATCH] libosmo-sccp[master]: osmo_ss7_vty: Add 'description' command for SS7 instances

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

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Apr 14 15:12:44 UTC 2017


Review at  https://gerrit.osmocom.org/2335

osmo_ss7_vty: Add 'description' command for SS7 instances

This allows the user to add some description to each SS7 instance

Change-Id: Ia5d22f2f70ec12dd13151f949bb45b5fdab42fc5
---
M src/osmo_ss7_vty.c
1 file changed, 3 insertions(+), 0 deletions(-)


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

diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index 6c19188..5dfa465 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -844,6 +844,8 @@
 	struct osmo_xua_server *oxs;
 
 	vty_out(vty, "cs7 instance %u%s", inst->cfg.id, VTY_NEWLINE);
+	if (inst->cfg.description)
+		vty_out(vty, " description %s%s", inst->cfg.description, VTY_NEWLINE);
 	if (inst->cfg.network_indicator)
 		vty_out(vty, " network-indicator %s%s",
 			get_value_string(ss7_network_indicator_vals,
@@ -950,6 +952,7 @@
 
 	install_node(&cs7_node, config_write_cs7);
 	vty_install_default(L_CS7_NODE);
+	install_element(L_CS7_NODE, &cfg_description_cmd);
 	install_element(L_CS7_NODE, &cs7_net_ind_cmd);
 	install_element(L_CS7_NODE, &cs7_point_code_cmd);
 	install_element(L_CS7_NODE, &cs7_pc_format_cmd);

-- 
To view, visit https://gerrit.osmocom.org/2335
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia5d22f2f70ec12dd13151f949bb45b5fdab42fc5
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list