9
0
Fork 0

vty: Avoid printing "ip (null)" in the saved config file

This commit is contained in:
Holger Hans Peter Freyther 2015-04-21 13:08:35 -04:00
parent e2aba7d0d0
commit c5950d7c60
1 changed files with 2 additions and 1 deletions

View File

@ -263,7 +263,8 @@ static void write_msc(struct vty *vty, struct msc_connection *msc)
vty_out(vty, " msc %d%s", msc->nr, VTY_NEWLINE);
vty_out(vty, " description %s%s", name, VTY_NEWLINE);
vty_out(vty, " mode %s%s", msc_mode(msc), VTY_NEWLINE);
vty_out(vty, " ip %s%s", msc->ip, VTY_NEWLINE);
if (msc->ip)
vty_out(vty, " ip %s%s", msc->ip, VTY_NEWLINE);
vty_out(vty, " port %d%s", msc->port, VTY_NEWLINE);
vty_out(vty, " token %s%s", msc->token, VTY_NEWLINE);
vty_out(vty, " dscp %d%s", msc->dscp, VTY_NEWLINE);