diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-04-14 15:36:07 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-04-14 17:11:21 +0200 |
commit | 993da0b4c2e6705266a674e1f72f5ee31db8409d (patch) | |
tree | de5e45b99e5482bd78b88f92e723e8fb39940b51 | |
parent | 246266c939aafcb709c9d4f7f6b16cd9da7404bf (diff) |
osmo_ss7_vty: Add 'description' command for SS7 instances
This allows the user to add some description to each SS7 instance
Change-Id: Ia5d22f2f70ec12dd13151f949bb45b5fdab42fc5
-rw-r--r-- | src/osmo_ss7_vty.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ static void write_one_cs7(struct vty *vty, struct osmo_ss7_instance *inst) 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 @@ static void vty_init_shared(void) 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); |