pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmo-sigtran/+/41403?usp=email )
Change subject: vty: Always write network-indicator
......................................................................
vty: Always write network-indicator
Network-indicator is an important configuration defining the network,
hence it should always be printed during vty show/write.
Change-Id: I969ee94c00afa7a77e26c8cf3e9b998b06022641
---
M src/ss7_vty.c
1 file changed, 3 insertions(+), 5 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran
refs/changes/03/41403/1
diff --git a/src/ss7_vty.c b/src/ss7_vty.c
index cfc658d..98c6073 100644
--- a/src/ss7_vty.c
+++ b/src/ss7_vty.c
@@ -1286,11 +1286,9 @@
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 != MTP_NI_INTERNATIONAL)
- vty_out(vty, " network-indicator %s%s",
- get_value_string(mtp_network_indicator_vals,
- inst->cfg.network_indicator),
- VTY_NEWLINE);
+ vty_out(vty, " network-indicator %s%s",
+ get_value_string(mtp_network_indicator_vals,
inst->cfg.network_indicator),
+ VTY_NEWLINE);
if (inst->cfg.pc_fmt.component_len[0] != 3 ||
inst->cfg.pc_fmt.component_len[1] != 8 ||
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/41403?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I969ee94c00afa7a77e26c8cf3e9b998b06022641
Gerrit-Change-Number: 41403
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>