aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libmsc/sgs_vty.c9
-rw-r--r--tests/test_nodes.vty1
2 files changed, 4 insertions, 6 deletions
diff --git a/src/libmsc/sgs_vty.c b/src/libmsc/sgs_vty.c
index 5b26178d6..8c94301fd 100644
--- a/src/libmsc/sgs_vty.c
+++ b/src/libmsc/sgs_vty.c
@@ -158,12 +158,9 @@ static int config_write_sgs(struct vty *vty)
char str_buf[256];
vty_out(vty, "sgs%s", VTY_NEWLINE);
- if (sgs->cfg.local_port != SGS_PORT_DEFAULT)
- vty_out(vty, " local-port %u%s", sgs->cfg.local_port, VTY_NEWLINE);
- if (sgs->cfg.local_addr)
- vty_out(vty, " local-ip %s%s", sgs->cfg.local_addr, VTY_NEWLINE);
- if (sgs->cfg.vlr_name)
- vty_out(vty, " vlr-name %s%s", sgs->cfg.vlr_name, VTY_NEWLINE);
+ vty_out(vty, " local-port %u%s", sgs->cfg.local_port, VTY_NEWLINE);
+ vty_out(vty, " local-ip %s%s", sgs->cfg.local_addr, VTY_NEWLINE);
+ vty_out(vty, " vlr-name %s%s", sgs->cfg.vlr_name, VTY_NEWLINE);
for (i = 0; i < ARRAY_SIZE(sgs->cfg.timer); i++) {
if (sgs->cfg.timer[i] == sgs_state_timer_defaults[i])
diff --git a/tests/test_nodes.vty b/tests/test_nodes.vty
index fb9e5f051..8aceb867f 100644
--- a/tests/test_nodes.vty
+++ b/tests/test_nodes.vty
@@ -147,6 +147,7 @@ hlr
remote-ip 127.0.0.1
remote-port 4222
sgs
+ local-port 29118
local-ip 0.0.0.0
vlr-name vlr.example.net
end