[MERGED] 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:18:09 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: osmo_ss7_vty: Add 'description' command for SS7 instances
......................................................................


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(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



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: merged
Gerrit-Change-Id: Ia5d22f2f70ec12dd13151f949bb45b5fdab42fc5
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list