]> git.puffer.fish Git - mirror/frr.git/commitdiff
*: vty_outln (vty, "") --> vty_out (vty, VTYNL)
authorQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 21 Jun 2017 18:10:29 +0000 (18:10 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 29 Jun 2017 17:34:56 +0000 (17:34 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
49 files changed:
bgpd/bgp_damp.c
bgpd/bgp_debug.c
bgpd/bgp_filter.c
bgpd/bgp_mplsvpn.c
bgpd/bgp_nexthop.c
bgpd/bgp_open.c
bgpd/bgp_route.c
bgpd/bgp_updgrp.c
bgpd/bgp_vpn.c
bgpd/bgpd.c
bgpd/rfapi/bgp_rfapi_cfg.c
bgpd/rfapi/rfapi_vty.c
bgpd/rfapi/vnc_debug.c
bgpd/rfp-example/librfp/rfp_example.c
isisd/isis_adjacency.c
isisd/isis_circuit.c
isisd/isis_lsp.c
isisd/isis_redist.c
isisd/isis_spf.c
isisd/isis_te.c
isisd/isisd.c
ldpd/ldp_debug.c
ldpd/ldp_vty_conf.c
ldpd/ldp_vty_exec.c
lib/bfd.c
lib/command.c
lib/distribute.c
lib/filter.c
lib/grammar_sandbox.c
lib/keychain.c
lib/plist.c
lib/vty.c
nhrpd/nhrp_vty.c
ospf6d/ospf6_top.c
ospfd/ospf_apiserver.c
ospfd/ospf_dump.c
ospfd/ospf_vty.c
pimd/pim_cmd.c
pimd/pim_vty.c
ripd/rip_interface.c
ripd/ripd.c
ripngd/ripngd.c
vtysh/vtysh.c
zebra/interface.c
zebra/redistribute.c
zebra/rtadv.c
zebra/zebra_mpls.c
zebra/zebra_vty.c
zebra/zserv.c

index eb96822a199d70b91336dc2e0147e92e5e8638f4..d5a89c1ff589100d8e6b3249e487da81382b76d5 100644 (file)
@@ -652,7 +652,7 @@ bgp_damp_info_vty (struct vty *vty, struct bgp_info *binfo,
         vty_out (vty, ", reuse in %s",
               bgp_get_reuse_time (penalty, timebuf, BGP_UPTIME_LEN, 0, json_path));
 
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 }
 
@@ -707,7 +707,7 @@ bgp_show_dampening_parameters (struct vty *vty, afi_t afi, safi_t safi)
                (long long)damp->max_suppress_time / 60);
       vty_outln (vty, "Max supress penalty: %u",
                damp->ceiling);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
   else
     vty_outln (vty, "dampening not enabled for %s",
index 0d11794aa70b743b194a435f16b055710b7559d1..5538402070e88033de2891e08f9f481e7189a3c8 100644 (file)
@@ -254,7 +254,7 @@ bgp_debug_list_print (struct vty *vty, const char *desc, struct list *list)
         }
     }
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 }
 
 /* Print the command to enable the debug for each peer/prefix this debug is
@@ -1747,7 +1747,7 @@ DEFUN (show_debugging_bgp,
 
   if (BGP_DEBUG (allow_martians, ALLOW_MARTIANS))
     vty_outln (vty, "  BGP allow martian next hop debugging is on");
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
   return CMD_SUCCESS;
 }
 
index ac0a3824960cded2b1c5f0a91c354902c3f8aae1..b2f0c3ee25d87b8a662dae266f5657700d17ad1c 100644 (file)
@@ -538,7 +538,7 @@ DEFUN (no_ip_as_path,
 
   if (asfilter == NULL)
     {
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
       return CMD_WARNING;
     }
 
index 125b06a41a1333c4e0a52d41389c6b0c3fa00316..dcbfdebe4919f9e658efe8bee4875ed00d5d33fe 100644 (file)
@@ -699,7 +699,7 @@ bgp_show_mpls_vpn (struct vty *vty, afi_t afi, struct prefix_rd *prd,
                                      rd_vnc_eth.macaddr.octet[4],
                                      rd_vnc_eth.macaddr.octet[5]);
 #endif
-                         vty_outln (vty, "");
+                         vty_out (vty, VTYNL);
                         }
                      rd_header = 0;
                    }
index 69882a31769ab6b277a6e899e47d4e637d7fc222..4216a2d49bfcbeea87a7d5534737fc9507e93156 100644 (file)
@@ -444,7 +444,7 @@ bgp_show_nexthops (struct vty *vty, struct bgp *bgp, int detail)
                }
              tbuf = time(NULL) - (bgp_clock() - bnc->last_update);
              vty_out (vty, "  Last update: %s", ctime(&tbuf));
-             vty_outln (vty, "");
+             vty_out (vty, VTYNL);
            }
        }
     }
index cf7abd3f21ea117b78e4c9e138432c66eec7753c..86befd3e8454727c8ae61541ed36733b2272b79e 100644 (file)
@@ -167,7 +167,7 @@ bgp_capability_vty_out (struct vty *vty, struct peer *peer, u_char use_json, jso
                     vty_out (vty, "SAFI Unknown %d ", mpc.safi);
                   break;
                 }
-              vty_outln (vty, "");
+              vty_out (vty, VTYNL);
             }
         }
       else if (hdr->code >= 128)
index eb31e04e392744d49ab5a37fb4cd1bc4d868968c..404360a3afdf17c033930664c48dc82a955d1158 100644 (file)
@@ -6504,7 +6504,7 @@ route_vty_out (struct vty *vty, struct prefix *p,
     }
   else
     {
-    vty_outln (vty, "");
+    vty_out (vty, VTYNL);
 #if ENABLE_BGP_VNC
       /* prints an additional line, indented, with VNC info, if present */
       if ((safi == SAFI_MPLS_VPN) || (safi == SAFI_ENCAP))
@@ -6641,7 +6641,7 @@ route_vty_out_tmp (struct vty *vty, struct prefix *p, struct attr *attr, safi_t
       json_object_object_add(json_ar, inet_ntop (p->family, &p->u.prefix, buf_cut, BUFSIZ), json_net);
     }
   else
-    vty_outln (vty, "");
+    vty_out (vty, VTYNL);
 }  
 
 void
@@ -6745,7 +6745,7 @@ route_vty_out_tag (struct vty *vty, struct prefix *p,
     {
       vty_out (vty, "notag/%d", label);
 
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 }  
 
@@ -6832,7 +6832,7 @@ route_vty_out_overlay (struct vty *vty, struct prefix *p,
             }
         }
     }
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 }
 
 /* dampening route */
@@ -6896,7 +6896,7 @@ damp_route_vty_out (struct vty *vty, struct prefix *p, struct bgp_info *binfo,
         vty_out (vty, "%s", bgp_origin_str[attr->origin]);
     }
   if (!use_json)
-    vty_outln (vty, "");
+    vty_out (vty, VTYNL);
 }
 
 /* flap route */
@@ -6996,7 +6996,7 @@ flap_route_vty_out (struct vty *vty, struct prefix *p, struct bgp_info *binfo,
         vty_out (vty, "%s", bgp_origin_str[attr->origin]);
     }
   if (!use_json)
-    vty_outln (vty, "");
+    vty_out (vty, VTYNL);
 }
 
 static void
@@ -7170,7 +7170,7 @@ route_vty_out_detail (struct vty *vty, struct bgp *bgp, struct prefix *p,
         }
 
       if (!json_paths)
-        vty_outln (vty, "");
+        vty_out (vty, VTYNL);
          
       /* Line2 display Next-hop, Neighbor, Router-id */
       /* Display the nexthop */
@@ -7319,7 +7319,7 @@ route_vty_out_detail (struct vty *vty, struct bgp *bgp, struct prefix *p,
        }
 
       if (!json_paths)
-        vty_outln (vty, "");
+        vty_out (vty, VTYNL);
 
       /* display the link-local nexthop */
       if (attr->extra && attr->extra->mp_nexthop_len == BGP_ATTR_NHLEN_IPV6_GLOBAL_AND_LL)
@@ -7538,7 +7538,7 @@ route_vty_out_detail (struct vty *vty, struct bgp *bgp, struct prefix *p,
         json_object_object_add(json_path, "bestpath", json_bestpath);
 
       if (!json_paths)
-        vty_outln (vty, "");
+        vty_out (vty, VTYNL);
          
       /* Line 4 display Community */
       if (attr->community)
@@ -7625,7 +7625,7 @@ route_vty_out_detail (struct vty *vty, struct bgp *bgp, struct prefix *p,
            }
 
           if (!json_paths)
-           vty_outln (vty, "");
+           vty_out (vty, VTYNL);
        }
 
       if (binfo->extra && binfo->extra->damp_info)
@@ -7700,7 +7700,7 @@ route_vty_out_detail (struct vty *vty, struct bgp *bgp, struct prefix *p,
             {
               if (!first)
                 {
-                 vty_outln (vty, "");
+                 vty_out (vty, VTYNL);
                 }
             }
         }
@@ -7740,7 +7740,7 @@ route_vty_out_detail (struct vty *vty, struct bgp *bgp, struct prefix *p,
       json_object_array_add(json_paths, json_path);
     }
   else
-    vty_outln (vty, "");
+    vty_out (vty, VTYNL);
 }
 
 #define BGP_SHOW_HEADER_CSV "Flags, Network, Next Hop, Metric, LocPrf, Weight, Path"
@@ -8223,7 +8223,7 @@ route_vty_out_detail_header (struct vty *vty, struct bgp *bgp,
         {
           if (first)
             vty_out (vty, "  Not advertised to any peer");
-          vty_outln (vty, "");
+          vty_out (vty, VTYNL);
         }
     }
 }
@@ -9227,7 +9227,7 @@ bgp_table_stats (struct vty *vty, struct bgp *bgp, afi_t afi, safi_t safi)
             vty_out (vty, "%12llu", ts.counts[i]);
         }
         
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
   return CMD_SUCCESS;
 }
@@ -10659,7 +10659,7 @@ bgp_config_write_network_vpn (struct vty *vty, struct bgp *bgp,
                 if (bgp_static->backdoor)
                   vty_out (vty, " backdoor");
               }
-           vty_outln (vty, "");
+           vty_out (vty, VTYNL);
          }
   return 0;
 }
@@ -10706,7 +10706,7 @@ bgp_config_write_network_evpn (struct vty *vty, struct bgp *bgp,
            vty_out (vty, " network %s rd %s ethtag %u tag %u esi %s gwip %s routermac %s",
                     buf, rdbuf, p->u.prefix_evpn.eth_tag,
                      decode_label (bgp_static->tag), esi, buf2 , macrouter);
-           vty_outln (vty, "");
+           vty_out (vty, VTYNL);
             if (macrouter)
               XFREE (MTYPE_TMP, macrouter);
             if (esi)
@@ -10781,7 +10781,7 @@ bgp_config_write_network (struct vty *vty, struct bgp *bgp,
              vty_out (vty, " backdoor");
           }
 
-       vty_outln (vty, "");
+       vty_out (vty, VTYNL);
       }
 
   /* Aggregate-address configuration. */
@@ -10815,7 +10815,7 @@ bgp_config_write_network (struct vty *vty, struct bgp *bgp,
        if (bgp_aggregate->summary_only)
          vty_out (vty, " summary-only");
 
-       vty_outln (vty, "");
+       vty_out (vty, VTYNL);
       }
 
   return 0;
index 8670ccdfd64313524f14c9c1a36f6f867fcf6d08..b1b33363638af74eaa2cbe572067bd9e2b22a786 100644 (file)
@@ -584,7 +584,7 @@ update_group_show_walkcb (struct update_group *updgrp, void *arg)
   {
     if (ctx->subgrp_id && (ctx->subgrp_id != subgrp->id))
       continue;
-    vty_outln (vty, "");
+    vty_out (vty, VTYNL);
     vty_outln (vty, "  Update-subgroup %" PRIu64 ":", subgrp->id);
     vty_out (vty, "    Created: %s", timestamp_string (subgrp->uptime));
 
index a1eb5c4a4e2331525d407ef0c428559301c0a315..3e622439575d3c520cdcb630d97949e0c328debd 100644 (file)
@@ -170,7 +170,7 @@ show_adj_route_vpn (struct vty *vty, struct peer *peer, struct prefix_rd *prd,
                                      rd_vnc_eth.macaddr.octet[5]);
 #endif
 
-                          vty_outln (vty, "");
+                          vty_out (vty, VTYNL);
                         }
                       rd_header = 0;
                     }
index 9c3611645191ffd89f48a90de0b5ff01b1f0ce50..aed78cb35abe50456a30f7e7b2a8309a37c08eae 100644 (file)
@@ -6584,7 +6584,7 @@ bgp_config_write_peer_global (struct vty *vty, struct bgp *bgp,
           if_ras_printed = TRUE;
         }
 
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 
   /* remote-as and peer-group */
@@ -6974,7 +6974,7 @@ bgp_config_write_peer_af (struct vty *vty, struct bgp *bgp,
        vty_out (vty, " send");
       else
        vty_out (vty, " receive");
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 
   /* Route reflector client. */
@@ -7121,7 +7121,7 @@ bgp_config_write_peer_af (struct vty *vty, struct bgp *bgp,
                           "  neighbor %s default-originate", addr);
       if (peer->default_rmap[afi][safi].name)
        vty_out (vty, " route-map %s", peer->default_rmap[afi][safi].name);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 
   /* Soft reconfiguration inbound. */
@@ -7149,7 +7149,7 @@ bgp_config_write_peer_af (struct vty *vty, struct bgp *bgp,
          vty_out (vty, " warning-only");
        if (peer->pmax_restart[afi][safi])
          vty_out (vty, " restart %u", peer->pmax_restart[afi][safi]);
-       vty_outln (vty, "");
+       vty_out (vty, VTYNL);
       }
 
   /* Route server client. */
@@ -7287,7 +7287,7 @@ bgp_config_write_family_header (struct vty *vty, afi_t afi, safi_t safi,
       if (safi == SAFI_EVPN)
        vty_out (vty, "l2vpn evpn");
     }
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   *write = 1;
 }
@@ -7374,7 +7374,7 @@ bgp_config_write (struct vty *vty)
                      (bgp->inst_type == BGP_INSTANCE_TYPE_VIEW) ?
                      "view" : "vrf", bgp->name);
        }
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
 
       /* No Synchronization */
       if (bgp_option_check (BGP_OPT_CONFIG_CISCO))
@@ -7445,7 +7445,7 @@ bgp_config_write (struct vty *vty)
          for (i = 0; i < bgp->confed_peers_cnt; i++)
            vty_out(vty, " %u", bgp->confed_peers[i]);
 
-          vty_outln (vty, "");
+          vty_out (vty, VTYNL);
        }
 
       /* BGP enforce-first-as. */
@@ -7466,14 +7466,14 @@ bgp_config_write (struct vty *vty)
           vty_out (vty, " bgp max-med on-startup %u", bgp->v_maxmed_onstartup);
           if (bgp->maxmed_onstartup_value != BGP_MAXMED_VALUE_DEFAULT)
             vty_out (vty, " %u", bgp->maxmed_onstartup_value);
-          vty_outln (vty, "");
+          vty_out (vty, VTYNL);
         }
       if (bgp->v_maxmed_admin != BGP_MAXMED_ADMIN_UNCONFIGURED)
         {
           vty_out (vty, " bgp max-med administrative");
           if (bgp->maxmed_admin_value != BGP_MAXMED_VALUE_DEFAULT)
             vty_out (vty, " %u", bgp->maxmed_admin_value);
-          vty_outln (vty, "");
+          vty_out (vty, VTYNL);
         }
 
       /* write quanta */
@@ -7528,7 +7528,7 @@ bgp_config_write (struct vty *vty)
            vty_out (vty, " confed");
          if (bgp_flag_check (bgp, BGP_FLAG_MED_MISSING_AS_WORST))
            vty_out (vty, " missing-as-worst");
-         vty_outln (vty, "");
+         vty_out (vty, VTYNL);
        }
 
       /* BGP network import check. */
index de153def481d5d0183586137c4660aa540154070..5cd8528ea9beecff644f96358072bfecfa7fcdc5 100644 (file)
@@ -2623,7 +2623,7 @@ bgp_rfapi_delete_nve_group (
             vty_out (vty, " un=");
           rfapiPrintRfapiIpAddr (vty, &rfd->un_addr);
           if (vty)
-            vty_outln (vty, "");
+            vty_out (vty, VTYNL);
         }
       list_delete (orphaned_nves);
     }
@@ -4463,7 +4463,7 @@ bgp_rfapi_cfg_write (struct vty *vty, struct bgp *bgp)
                   {
                     vty_out (vty, "%hu ", (uint16_t) ((uintptr_t) data));
                   }
-                vty_outln (vty, "");
+                vty_out (vty, VTYNL);
               }
 
             if (rfg->rt_import_list && rfg->rt_export_list &&
@@ -4550,7 +4550,7 @@ bgp_rfapi_cfg_write (struct vty *vty, struct bgp *bgp)
               vty_out (vty, "%d", hc->default_response_lifetime);
             else
               vty_out (vty, "infinite");
-            vty_outln (vty, "");
+            vty_out (vty, VTYNL);
           }
         if (hc->default_rt_import_list && hc->default_rt_export_list &&
             ecommunity_cmp (hc->default_rt_import_list,
@@ -4665,7 +4665,7 @@ bgp_rfapi_cfg_write (struct vty *vty, struct bgp *bgp)
               vty_out (vty, "%d", rfg->response_lifetime);
             else
               vty_out (vty, "infinite");
-            vty_outln (vty, "");
+            vty_out (vty, VTYNL);
           }
 
         if (rfg->rt_import_list && rfg->rt_export_list &&
@@ -5035,7 +5035,7 @@ bgp_rfapi_show_summary (struct bgp *bgp, struct vty *vty)
            (hc->rfp_cfg.ftd_advertisement_interval == RFAPI_RFP_CFG_DEFAULT_FTD_ADVERTISEMENT_INTERVAL ? "(default)" : ""));
   vty_outln (vty, "%-39s %d seconds", "Default RFP response lifetime:",
            hc->default_response_lifetime);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
   return;
 }
 
index 8a5c1dff91f9b9529cc43df5568898f3f47ed6fa..2062164890095024d9917fb327a225d20af26f49 100644 (file)
@@ -2516,7 +2516,7 @@ register_add (
          }
 
        vnc_zlog_debug_verbose ("%s: rfapi_register failed", __func__);
-       vty_outln (vty, "");
+       vty_out (vty, VTYNL);
        vty_outln (vty, "Registration failed.");
        vty_outln (vty,
                 "Confirm that either the VN or UN address matches a configured NVE group.");
@@ -4465,10 +4465,10 @@ rfapi_vty_show_nve_summary (struct vty *vty, show_nve_summary_t show_type)
                        h->stat.count_registrations_failed);
               vty_out (vty, "%-8s %-8u", "Total:",
                        h->stat.count_registrations);
-              vty_outln (vty, "");
+              vty_out (vty, VTYNL);
             }
           vty_out (vty, "%-24s ", "Prefixes registered:");
-          vty_outln (vty, "");
+          vty_out (vty, VTYNL);
 
           rfapiCountAllItRoutes (&active_local_routes,
                                  &active_remote_routes,
@@ -4480,16 +4480,16 @@ rfapi_vty_show_nve_summary (struct vty *vty, show_nve_summary_t show_type)
             {
               vty_out (vty, "    %-20s ", "Locally:");
               vty_out (vty, "%-8s %-8u ", "Active:", active_local_routes);
-              vty_outln (vty, "");
+              vty_out (vty, VTYNL);
             }
 
 
           vty_out (vty, "    %-20s ", "Remotely:");
           vty_out (vty, "%-8s %-8u", "Active:", active_remote_routes);
-          vty_outln (vty, "");
+          vty_out (vty, VTYNL);
           vty_out (vty, "    %-20s ", "In Holddown:");
           vty_out (vty, "%-8s %-8u", "Active:", holddown_remote_routes);
-          vty_outln (vty, "");
+          vty_out (vty, VTYNL);
           vty_out (vty, "    %-20s ", "Imported:");
           vty_out (vty, "%-8s %-8u", "Active:", imported_remote_routes);
           break;
@@ -4508,7 +4508,7 @@ rfapi_vty_show_nve_summary (struct vty *vty, show_nve_summary_t show_type)
         default:
           break;
         }
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
   return 0;
 
@@ -4622,7 +4622,7 @@ DEFUN (vnc_show_summary,
   if (!check_and_display_is_vnc_running (vty))
     return CMD_SUCCESS;
   bgp_rfapi_show_summary (bgp_get_default (), vty);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
   rfapi_vty_show_nve_summary (vty, SHOW_NVE_SUMMARY_ACTIVE_NVES);
   rfapi_vty_show_nve_summary (vty, SHOW_NVE_SUMMARY_QUERIES);
   rfapi_vty_show_nve_summary (vty, SHOW_NVE_SUMMARY_RESPONSES);
@@ -4719,7 +4719,7 @@ rfapi_show_registrations (
     }
   if (!printed)
     {
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 }
 
index a2d676655da18d81fbc33b2b0664234913cacb9c..e43b152e50a5d1f88a77ca162a912af3916d44bc 100644 (file)
@@ -173,7 +173,7 @@ DEFUN (show_debugging_bgp_vnc,
            vncdebug[i].name);
        }
     }
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
   return CMD_SUCCESS;
 }
 
index 7bdd12c0e7d0136e7f46a69a1576ea9e5083d403..a0ba8290875b3cb45f529731a670b3c653baafa3 100644 (file)
@@ -197,7 +197,7 @@ rfp_cfg_write_cb (struct vty *vty, void *rfp_start_val)
   if (rfi->config_var != 0)
     {
       vty_out (vty, " rfp example-config-value %u", rfi->config_var);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
       write++;
     }
 
index 46796f916c3f862237a17ea6d76c382c8659399b..efe5e6721b682a9c8bd95d44ad69fc1fd7c1b32f 100644 (file)
@@ -402,13 +402,13 @@ isis_adj_print_vty (struct isis_adjacency *adj, struct vty *vty, char detail)
       else
        vty_out (vty, "-        ");
       vty_out (vty, "%-10s", snpa_print (adj->snpa));
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 
   if (detail == ISIS_UI_LEVEL_DETAIL)
     {
       level = adj->level;
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
       if (adj->circuit)
        vty_out (vty, "    Interface: %s", adj->circuit->interface->name);
       else
@@ -421,13 +421,13 @@ isis_adj_print_vty (struct isis_adjacency *adj, struct vty *vty, char detail)
                 time2string (adj->last_upd + adj->hold_time - now));
       else
        vty_out (vty, ", Expires in %s", time2string (adj->hold_time));
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
       vty_out (vty, "    Adjacency flaps: %u", adj->flaps);
       vty_out (vty, ", Last: %s ago", time2string (now - adj->last_flap));
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
       vty_out (vty, "    Circuit type: %s", circuit_t2string (adj->circuit_t));
       vty_out (vty, ", Speaks: %s", nlpid2string (&adj->nlpids));
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
       if (adj->mt_count != 1 || adj->mt_set[0] != ISIS_MT_IPV4_UNICAST)
         {
           vty_outln (vty, "    Topologies:");
@@ -445,7 +445,7 @@ isis_adj_print_vty (struct isis_adjacency *adj, struct vty *vty, char detail)
           vty_out (vty, ", LAN id: %s.%02x",
               sysid_print (adj->lanid), adj->lanid[ISIS_SYS_ID_LEN]);
 
-        vty_outln (vty, "");
+        vty_out (vty, VTYNL);
         vty_out (vty, "    LAN Priority: %u", adj->prio[adj->level - 1]);
 
         vty_out (vty, ", %s, DIS flaps: %u, Last: %s ago",
@@ -455,7 +455,7 @@ isis_adj_print_vty (struct isis_adjacency *adj, struct vty *vty, char detail)
               (adj->dis_record[ISIS_LEVELS + level - 1].
                last_dis_change)));
       }
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
 
       if (adj->area_addrs && listcount (adj->area_addrs) > 0)
         {
@@ -480,7 +480,7 @@ isis_adj_print_vty (struct isis_adjacency *adj, struct vty *vty, char detail)
              vty_outln (vty, "      %s", ip6);
            }
        }
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
   return;
 }
index e3ef7d93af2e7da90d79bbd50098e0f9ccea08e4..73affa91dc97aea83ffd9ae00c6f264a823aae36 100644 (file)
@@ -878,7 +878,7 @@ isis_circuit_print_vty (struct isis_circuit *circuit, struct vty *vty,
       vty_out (vty, "%-9s", circuit_state2string (circuit->state));
       vty_out (vty, "%-9s", circuit_type2string (circuit->circ_type));
       vty_out (vty, "%-9s", circuit_t2string (circuit->is_type));
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 
   if (detail == ISIS_UI_LEVEL_DETAIL)
@@ -894,12 +894,12 @@ isis_circuit_print_vty (struct isis_circuit *circuit, struct vty *vty,
       else
         vty_out (vty, ", Active");
       vty_out (vty, ", Circuit Id: 0x%x", circuit->circuit_id);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
       vty_out (vty, "    Type: %s", circuit_type2string (circuit->circ_type));
       vty_out (vty, ", Level: %s", circuit_t2string (circuit->is_type));
       if (circuit->circ_type == CIRCUIT_T_BROADCAST)
         vty_out (vty, ", SNPA: %-10s", snpa_print (circuit->u.bc.snpa));
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
       if (circuit->is_type & IS_LEVEL_1)
         {
           vty_outln (vty, "    Level-1 Information:");
@@ -928,7 +928,7 @@ isis_circuit_print_vty (struct isis_circuit *circuit, struct vty *vty,
             }
           else
             {
-              vty_outln (vty, "");
+              vty_out (vty, VTYNL);
             }
         }
       if (circuit->is_type & IS_LEVEL_2)
@@ -959,7 +959,7 @@ isis_circuit_print_vty (struct isis_circuit *circuit, struct vty *vty,
             }
           else
             {
-              vty_outln (vty, "");
+              vty_out (vty, VTYNL);
             }
         }
       if (circuit->ip_addrs && listcount (circuit->ip_addrs) > 0)
@@ -990,7 +990,7 @@ isis_circuit_print_vty (struct isis_circuit *circuit, struct vty *vty,
             }
         }
 
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
   return;
 }
index 9bfefc665bee78449efc1f1f087074019fd570a5..d0c4ccc306bde248598517a9c178bdad058470fe 100644 (file)
@@ -1079,7 +1079,7 @@ lsp_print_detail (struct isis_lsp *lsp, struct vty *vty, char dynhost)
   for (ALL_LIST_ELEMENTS_RO (lsp->tlv_data.mt_ipv4_reachs, lnode, mt_ipv4_reachs))
     lsp_print_mt_ipv4_reach(mt_ipv4_reachs->list, vty, mt_ipv4_reachs->mtid);
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   return;
 }
index 33b33f7b92e40c9fbc9f0846d6f6b1d0c9062fe4..25fdf717b05875b23aa91cf9a6c84c8e08643f26 100644 (file)
@@ -796,7 +796,7 @@ isis_redist_config_write(struct vty *vty, struct isis_area *area,
             vty_out(vty, " metric %u", redist->metric);
           if (redist->map_name)
             vty_out(vty, " route-map %s", redist->map_name);
-          vty_outln (vty, "");
+          vty_out (vty, VTYNL);
           write++;
         }
     }
@@ -814,7 +814,7 @@ isis_redist_config_write(struct vty *vty, struct isis_area *area,
         vty_out(vty, " metric %u", redist->metric);
       if (redist->map_name)
         vty_out(vty, " route-map %s", redist->map_name);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
       write++;
     }
 
index 05dfa52874de970e0c5394408d19beb563e3fbaa..f19c813360bed0bb3b9989af1676b920292a301e 100644 (file)
@@ -1336,7 +1336,7 @@ isis_print_paths (struct vty *vty, struct list *paths, u_char *root_sysid)
        for (ALL_LIST_ELEMENTS_RO (vertex->Adj_N, anode, adj)) {
          if (adj) {
            if (rows) {
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
                vty_out (vty, "%-20s %-12s %-6s ", "", "", "");
            }
            vty_out (vty, "%-20s %-9s ",
@@ -1356,7 +1356,7 @@ isis_print_paths (struct vty *vty, struct list *paths, u_char *root_sysid)
        int rows = 0;
        for (ALL_LIST_ELEMENTS_RO (vertex->parents, pnode, pvertex)) {
          if (rows) {
-           vty_outln (vty, "");
+           vty_out (vty, VTYNL);
            vty_out (vty, "%-72s", "");
          }
          vty_out (vty, "%s(%d)",
@@ -1367,7 +1367,7 @@ isis_print_paths (struct vty *vty, struct list *paths, u_char *root_sysid)
        vty_out (vty, "  NULL ");
       }
 
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 }
 
@@ -1409,7 +1409,7 @@ DEFUN (show_isis_topology,
              vty_outln (vty, "IS-IS paths to level-%d routers that speak IP",
                       level);
              isis_print_paths (vty, area->spftree[level-1]->paths, isis->sysid);
-             vty_outln (vty, "");
+             vty_out (vty, VTYNL);
            }
          if (area->ipv6_circuits > 0 && area->spftree6[level-1]
              && area->spftree6[level-1]->paths->count > 0)
@@ -1418,11 +1418,11 @@ DEFUN (show_isis_topology,
                       "IS-IS paths to level-%d routers that speak IPv6",
                       level);
              isis_print_paths (vty, area->spftree6[level-1]->paths, isis->sysid);
-             vty_outln (vty, "");
+             vty_out (vty, VTYNL);
            }
        }
 
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 
   return CMD_SUCCESS;
index b3bd1146f8174b6d08b94323f284a58823c01863..c4a0b9230be17f4284c5a49641c5eb4378c4b0bb 100644 (file)
@@ -974,7 +974,7 @@ show_vty_unknown_tlv (struct vty *vty, struct subtlv_header *tlvh)
               else
                 rtn++;
             }
-          vty_outln (vty, "");
+          vty_out (vty, VTYNL);
         }
       else
         vty_outln (vty, "    Unknown TLV: [type(%#.2x), length(%#.2x)]",
index b0d6144ed4ff0df64e3d4e0bf62fbe5c76498979..cf3b3251316af76e962856a7fb191e357c4052d2 100644 (file)
@@ -1374,7 +1374,7 @@ DEFUN (show_isis_summary,
 
   vty_out (vty, "Up time         : ");
   vty_out_timestr(vty, isis->uptime);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   if (isis->area_list)
     vty_outln (vty, "Number of areas : %d",isis->area_list->count);
@@ -1409,12 +1409,12 @@ DEFUN (show_isis_summary,
           area->min_spf_interval[level - 1]);
       if (area->spf_delay_ietf[level - 1])
          vty_out (vty, " (not used, IETF SPF delay activated)");
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
 
       vty_outln (vty, "    IPv4 route computation:");
       vty_out (vty, "      last run elapsed  : ");
       vty_out_timestr(vty, spftree->last_run_timestamp);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
 
       vty_outln (vty, "      last run duration : %u usec",
                (u_int32_t)spftree->last_run_duration);
@@ -1427,7 +1427,7 @@ DEFUN (show_isis_summary,
 
       vty_out (vty, "      last run elapsed  : ");
       vty_out_timestr(vty, spftree->last_run_timestamp);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
 
       vty_outln (vty, "      last run duration : %llu msec",
                (unsigned long long)spftree->last_run_duration);
@@ -1436,7 +1436,7 @@ DEFUN (show_isis_summary,
           spftree->runcount);
     }
   }
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   return CMD_SUCCESS;
 }
@@ -2174,7 +2174,7 @@ isis_config_write (struct vty *vty)
                else
                  vty_out(vty, "send-only");
              }
-           vty_outln (vty, "");
+           vty_out (vty, VTYNL);
            write++; 
          }
         else if (area->area_passwd.type == ISIS_PASSWD_TYPE_CLEARTXT)
@@ -2188,7 +2188,7 @@ isis_config_write (struct vty *vty)
                else
                  vty_out(vty, "send-only");
              }
-           vty_outln (vty, "");
+           vty_out (vty, VTYNL);
            write++; 
           }
        if (area->domain_passwd.type == ISIS_PASSWD_TYPE_HMAC_MD5)
@@ -2203,7 +2203,7 @@ isis_config_write (struct vty *vty)
                else
                  vty_out(vty, "send-only");
              }
-           vty_outln (vty, "");
+           vty_out (vty, VTYNL);
            write++;
          }
         else if (area->domain_passwd.type == ISIS_PASSWD_TYPE_CLEARTXT)
@@ -2218,7 +2218,7 @@ isis_config_write (struct vty *vty)
                else
                  vty_out(vty, "send-only");
              }
-           vty_outln (vty, "");
+           vty_out (vty, VTYNL);
            write++;
          }
 
index 968e6e44c23fe2efda305ec3f161a2bc81d623ac..466b6af8b2a7112f97f754e7e5a52b7c799f99ed 100644 (file)
@@ -127,7 +127,7 @@ ldp_vty_show_debugging(struct vty *vty)
                vty_outln (vty,"  LDP messages debugging is on (outbound)");
        if (LDP_DEBUG(zebra, ZEBRA))
                vty_outln (vty, "  LDP zebra debugging is on");
-       vty_outln (vty, "");
+       vty_out (vty, VTYNL);
 
        return (CMD_SUCCESS);
 }
index df57c3259250b6218a6d709e69e2a89aff536f74..900be046ea9d151e22206fc624aadbb9acdb13bc 100644 (file)
@@ -155,7 +155,7 @@ ldp_af_config_write(struct vty *vty, int af, struct ldpd_conf *conf,
                if (af_conf->acl_thello_accept_from[0] != '\0')
                        vty_out(vty, " from %s",
                            af_conf->acl_thello_accept_from);
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
        }
 
        if (af_conf->thello_holdtime != TARGETED_DFLT_HOLDTIME &&
@@ -182,7 +182,7 @@ ldp_af_config_write(struct vty *vty, int af, struct ldpd_conf *conf,
                else
                        vty_out(vty, " for %s",
                            af_conf->acl_label_allocate_for);
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
        }
 
        if (af_conf->acl_label_advertise_for[0] != '\0' ||
@@ -194,7 +194,7 @@ ldp_af_config_write(struct vty *vty, int af, struct ldpd_conf *conf,
                if (af_conf->acl_label_advertise_for[0] != '\0')
                        vty_out(vty, " for %s",
                            af_conf->acl_label_advertise_for);
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
        }
 
        if (af_conf->flags & F_LDPD_AF_EXPNULL) {
@@ -202,7 +202,7 @@ ldp_af_config_write(struct vty *vty, int af, struct ldpd_conf *conf,
                if (af_conf->acl_label_expnull_for[0] != '\0')
                        vty_out(vty, " for %s",
                            af_conf->acl_label_expnull_for);
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
        }
 
        if (af_conf->acl_label_accept_for[0] != '\0' ||
@@ -214,7 +214,7 @@ ldp_af_config_write(struct vty *vty, int af, struct ldpd_conf *conf,
                if (af_conf->acl_label_accept_for[0] != '\0')
                        vty_out(vty, " for %s",
                            af_conf->acl_label_accept_for);
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
        }
 
        if (af_conf->flags & F_LDPD_AF_NO_GTSM)
index ba1f4891eff239a87b617560610ea99e089fab9d..c9560670238b6cbeeafb7800d64975347a083f7c 100644 (file)
@@ -135,7 +135,7 @@ show_interface_msg(struct vty *vty, struct imsg *imsg,
                    iface->adj_cnt);
                break;
        case IMSG_CTL_END:
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
                return (1);
        default:
                break;
@@ -217,7 +217,7 @@ show_discovery_msg(struct vty *vty, struct imsg *imsg,
                vty_outln (vty, "%9u", adj->holdtime);
                break;
        case IMSG_CTL_END:
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
                return (1);
        default:
                break;
@@ -326,7 +326,7 @@ show_discovery_detail_msg(struct vty *vty, struct imsg *imsg,
                vty_out(vty, "%s", ifaces_buffer);
                vty_outln (vty, "  Targeted Hellos:");
                vty_out(vty, "%s", tnbrs_buffer);
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
                return (1);
        default:
                break;
@@ -620,7 +620,7 @@ show_nbr_detail_msg(struct vty *vty, struct imsg *imsg,
                        vty_outln (vty, "    IPv6:");
                        vty_out(vty, "%s", v6adjs_buffer);
                }
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
                break;
        case IMSG_CTL_END:
                return (1);
@@ -898,10 +898,10 @@ show_nbr_capabilities_msg(struct vty *vty, struct imsg *imsg, struct show_params
                vty_outln (vty, "Peer LDP Identifier: %s:0",
                          inet_ntoa(nbr->id));
                show_nbr_capabilities(vty, nbr);
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
                break;
        case IMSG_CTL_END:
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
                return (1);
        default:
                break;
@@ -1027,7 +1027,7 @@ show_lib_msg(struct vty *vty, struct imsg *imsg, struct show_params *params)
                    rt->in_use ? "yes" : "no");
                break;
        case IMSG_CTL_END:
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
                return (1);
        default:
                break;
@@ -1099,7 +1099,7 @@ show_lib_detail_msg(struct vty *vty, struct imsg *imsg, struct show_params *para
                        vty_outln (vty, "%-8sNo remote bindings","");
                break;
        case IMSG_CTL_END:
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
                return (1);
        default:
                break;
@@ -1261,7 +1261,7 @@ show_l2vpn_binding_msg(struct vty *vty, struct imsg *imsg,
                        vty_outln (vty,"    Remote Label: unassigned");
                break;
        case IMSG_CTL_END:
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
                return (1);
        default:
                break;
@@ -1345,7 +1345,7 @@ show_l2vpn_pw_msg(struct vty *vty, struct imsg *imsg, struct show_params *params
                    (pw->status ? "UP" : "DOWN"));
                break;
        case IMSG_CTL_END:
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
                return (1);
        default:
                break;
index 30271e010afe084eee585cc81af48d2546f87de9..e6f881c992df655efc77f718ef34c77311f147c1 100644 (file)
--- a/lib/bfd.c
+++ b/lib/bfd.c
@@ -461,7 +461,7 @@ bfd_show_info(struct vty *vty, struct bfd_info *bfd_info, int multihop,
   if (use_json)
     json_object_object_add(json_obj, "peerBfdInfo", json_bfd);
   else
-    vty_outln (vty, "");
+    vty_out (vty, VTYNL);
 }
 
 /*
index 9f62fef2d256027ebbf923a58e8f145bbdf7a8b9..f0194733085a1e5d9dd42cd0414398e672cde4d2 100644 (file)
@@ -463,7 +463,7 @@ config_write_host (struct vty *vty)
       if (zlog_default->maxlvl[ZLOG_DEST_FILE] != zlog_default->default_lvl)
         vty_out (vty, " %s",
                  zlog_priority[zlog_default->maxlvl[ZLOG_DEST_FILE]]);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 
   if (zlog_default->maxlvl[ZLOG_DEST_STDOUT] != ZLOG_DISABLED)
@@ -472,7 +472,7 @@ config_write_host (struct vty *vty)
       if (zlog_default->maxlvl[ZLOG_DEST_STDOUT] != zlog_default->default_lvl)
         vty_out (vty, " %s",
                  zlog_priority[zlog_default->maxlvl[ZLOG_DEST_STDOUT]]);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 
   if (zlog_default->maxlvl[ZLOG_DEST_MONITOR] == ZLOG_DISABLED)
@@ -487,7 +487,7 @@ config_write_host (struct vty *vty)
       if (zlog_default->maxlvl[ZLOG_DEST_SYSLOG] != zlog_default->default_lvl)
         vty_out (vty, " %s",
                  zlog_priority[zlog_default->maxlvl[ZLOG_DEST_SYSLOG]]);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 
   if (zlog_default->facility != LOG_DAEMON)
@@ -1421,7 +1421,7 @@ permute (struct graph_node *start, struct vty *vty)
       }
       if (gn == start)
         vty_out (vty, "...");
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
     else
     {
@@ -2012,7 +2012,7 @@ DEFUN (show_logging,
     vty_out (vty, "level %s, facility %s, ident %s",
              zlog_priority[zl->maxlvl[ZLOG_DEST_SYSLOG]],
              facility_name(zl->facility), zl->ident);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   vty_out (vty, "Stdout logging: ");
   if (zl->maxlvl[ZLOG_DEST_STDOUT] == ZLOG_DISABLED)
@@ -2020,7 +2020,7 @@ DEFUN (show_logging,
   else
     vty_out (vty, "level %s",
              zlog_priority[zl->maxlvl[ZLOG_DEST_STDOUT]]);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   vty_out (vty, "Monitor logging: ");
   if (zl->maxlvl[ZLOG_DEST_MONITOR] == ZLOG_DISABLED)
@@ -2028,7 +2028,7 @@ DEFUN (show_logging,
   else
     vty_out (vty, "level %s",
              zlog_priority[zl->maxlvl[ZLOG_DEST_MONITOR]]);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   vty_out (vty, "File logging: ");
   if ((zl->maxlvl[ZLOG_DEST_FILE] == ZLOG_DISABLED) ||
@@ -2038,7 +2038,7 @@ DEFUN (show_logging,
     vty_out (vty, "level %s, filename %s",
              zlog_priority[zl->maxlvl[ZLOG_DEST_FILE]],
              zl->filename);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   vty_outln (vty, "Protocol name: %s",
            zl->protoname);
index a935e84ad6d921980960a051ba66b75f29fbac68..c771f018c2f119c24a7c7833ec0c67a865e840cc 100644 (file)
@@ -393,7 +393,7 @@ config_show_distribute (struct vty *vty)
                                    DISTRIBUTE_V6_OUT, has_print);
     }
   if (has_print)
-    vty_outln (vty, "");
+    vty_out (vty, VTYNL);
   else
     vty_outln (vty, " not set");
 
@@ -414,7 +414,7 @@ config_show_distribute (struct vty *vty)
             has_print = distribute_print(vty, dist->prefix, 1,
                                          DISTRIBUTE_V6_OUT, has_print);
             if (has_print)
-             vty_outln (vty, "");
+             vty_out (vty, VTYNL);
             else
               vty_outln (vty, " nothing");
            }
@@ -437,7 +437,7 @@ config_show_distribute (struct vty *vty)
                                    DISTRIBUTE_V6_IN, has_print);
     }
   if (has_print)
-    vty_outln (vty, "");
+    vty_out (vty, VTYNL);
   else
     vty_outln (vty, " not set");
 
@@ -458,7 +458,7 @@ config_show_distribute (struct vty *vty)
             has_print = distribute_print(vty, dist->prefix, 1,
                                          DISTRIBUTE_V6_IN, has_print);
             if (has_print)
-             vty_outln (vty, "");
+             vty_out (vty, VTYNL);
             else
               vty_outln (vty, " nothing");
            }
index 06f661c191ed51ac3fddfdccdf90a8b64ecae4d9..3cef49b2da54ab83269fe5a5e82f5836a78c5688 100644 (file)
@@ -1727,7 +1727,7 @@ filter_show (struct vty *vty, const char *name, afi_t afi)
                  vty_out (vty, " %s", inet_ntoa (filter->addr));
                  if (filter->addr_mask.s_addr != 0)
                    vty_out (vty, ", wildcard bits %s", inet_ntoa (filter->addr_mask));
-                 vty_outln (vty, "");
+                 vty_out (vty, VTYNL);
                }
            }
        }
@@ -1770,7 +1770,7 @@ filter_show (struct vty *vty, const char *name, afi_t afi)
                  vty_out (vty, " %s", inet_ntoa (filter->addr));
                  if (filter->addr_mask.s_addr != 0)
                    vty_out (vty, ", wildcard bits %s", inet_ntoa (filter->addr_mask));
-                 vty_outln (vty, "");
+                 vty_out (vty, VTYNL);
                }
            }
        }
@@ -1855,7 +1855,7 @@ config_write_access_cisco (struct vty *vty, struct filter *mfilter)
          vty_out (vty, " %s", inet_ntoa (filter->mask));
          vty_out (vty, " %s", inet_ntoa (filter->mask_mask));
        }
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
   else
     {
@@ -1866,7 +1866,7 @@ config_write_access_cisco (struct vty *vty, struct filter *mfilter)
          vty_out (vty, " %s", inet_ntoa (filter->addr));
          if (filter->addr_mask.s_addr != 0)
            vty_out (vty, " %s", inet_ntoa (filter->addr_mask));
-         vty_outln (vty, "");
+         vty_out (vty, VTYNL);
        }
     }
 }
@@ -1889,7 +1889,7 @@ config_write_access_zebra (struct vty *vty, struct filter *mfilter)
             p->prefixlen,
             filter->exact ? " exact-match" : "");
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 }
 
 static int
index 5fc77475b935368c5ecc2732bf373a88ed869bd2..9bb672dc531b4b3acd20cde143425a5b306b4e96 100644 (file)
@@ -418,14 +418,14 @@ DEFUN (grammar_findambig,
                        prev->el->string);
             vty_outln (vty, "  %s%s   '%s'", cur->el->name,  VTYNL,
                        cur->el->string);
-            vty_outln (vty, "");
+            vty_out (vty, VTYNL);
             ambig++;
           }
         prev = cur;
       }
     list_delete (commands);
 
-    vty_outln (vty, "");
+    vty_out (vty, VTYNL);
   } while (scan && scannode < LINK_PARAMS_NODE);
 
   vty_outln (vty, "%d ambiguous commands found.", ambig);
@@ -543,7 +543,7 @@ pretty_print_graph (struct vty *vty, struct graph_node *start, int level,
   if (numto)
     {
       if (numto > 1)
-        vty_outln (vty, "");
+        vty_out (vty, VTYNL);
       for (unsigned int i = 0; i < vector_active (start->to); i++)
         {
           struct graph_node *adj = vector_slot (start->to, i);
@@ -569,7 +569,7 @@ pretty_print_graph (struct vty *vty, struct graph_node *start, int level,
        }
     }
   else
-    vty_outln (vty, "");
+    vty_out (vty, VTYNL);
 }
 
 static void
index 708b22252dca7cd02f7d98128f996349f1f1cb51..9fe887c2c02b11b5fcc1e11c2aa0d1e62b33401e 100644 (file)
@@ -990,7 +990,7 @@ keychain_config_write (struct vty *vty)
                  keychain_strftime (buf, BUFSIZ, &key->accept.end);
                  vty_out (vty, " %s", buf);
                }
-             vty_outln (vty, "");
+             vty_out (vty, VTYNL);
            }
 
          if (key->send.start)
@@ -1007,7 +1007,7 @@ keychain_config_write (struct vty *vty)
                  keychain_strftime (buf, BUFSIZ, &key->send.end);
                  vty_out (vty, " %s", buf);
                }
-             vty_outln (vty, "");
+             vty_out (vty, VTYNL);
            }
        }
       vty_outln (vty, "!");
index 4a223d1262e889d9ccf476143e6a29b8cdfa8f20..172f2b39dba703cca8c3a727d4e2da321103ed61 100644 (file)
@@ -1234,7 +1234,7 @@ vty_show_prefix_entry (struct vty *vty, afi_t afi, struct prefix_list *plist,
            vty_out (vty, " (hit count: %ld, refcount: %ld)", 
                     pentry->hitcnt, pentry->refcnt);
          
-         vty_outln (vty, "");
+         vty_out (vty, VTYNL);
        }
     }
 }
@@ -1346,7 +1346,7 @@ vty_show_prefix_list_prefix (struct vty *vty, afi_t afi, const char *name,
            vty_out (vty, " (hit count: %ld, refcount: %ld)", 
                     pentry->hitcnt, pentry->refcnt);
 
-         vty_outln (vty, "");
+         vty_out (vty, VTYNL);
 
          if (type == first_match_display)
            return CMD_SUCCESS;
@@ -1860,7 +1860,7 @@ config_write_prefix_afi (afi_t afi, struct vty *vty)
              if (pentry->le)
                vty_out (vty, " le %d", pentry->le);
            }
-         vty_outln (vty, "");
+         vty_out (vty, VTYNL);
          write++;
        }
       /* vty_out (vty, "!%s", VTYNL); */
@@ -1903,7 +1903,7 @@ config_write_prefix_afi (afi_t afi, struct vty *vty)
              if (pentry->le)
                vty_out (vty, " le %d", pentry->le);
            }
-         vty_outln (vty, "");
+         vty_out (vty, VTYNL);
          write++;
        }
     }
@@ -2073,7 +2073,7 @@ prefix_bgp_show_prefix_list (struct vty *vty, afi_t afi, char *name, u_char use_
           if (pentry->le)
             vty_out (vty, " le %d", pentry->le);
 
-          vty_outln (vty, "");
+          vty_out (vty, VTYNL);
         }
     }
   return plist->count;
index e351ec6912b5e7237dcb416c530da38561a94140..145bcfe9457b53b684e50ecb6f2b66d5af3bc550 100644 (file)
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -730,7 +730,7 @@ vty_backward_word (struct vty *vty)
 static void
 vty_down_level (struct vty *vty)
 {
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
   cmd_exit (vty);
   vty_prompt (vty);
   vty->cp = 0;
@@ -740,7 +740,7 @@ vty_down_level (struct vty *vty)
 static void
 vty_end_config (struct vty *vty)
 {
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   switch (vty->node)
     {
@@ -945,7 +945,7 @@ vty_complete_command (struct vty *vty)
 
   cmd_free_strvec (vline);
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
   switch (ret)
     {
     case CMD_ERR_AMBIGUOUS:
@@ -985,11 +985,11 @@ vty_complete_command (struct vty *vty)
       for (i = 0; matched[i] != NULL; i++)
         {
           if (i != 0 && ((i % 6) == 0))
-            vty_outln (vty, "");
+            vty_out (vty, VTYNL);
           vty_out (vty, "%-10s ", matched[i]);
           XFREE (MTYPE_COMPLETION, matched[i]);
         }
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
 
       vty_prompt (vty);
       vty_redraw_line (vty);
@@ -1068,7 +1068,7 @@ vty_describe_command (struct vty *vty)
 
   describe = cmd_describe_command (vline, vty, &ret);
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   /* Ambiguous error. */
   switch (ret)
@@ -1141,7 +1141,7 @@ vty_describe_command (struct vty *vty)
                     vty_out(vty, " %s", item);
                     XFREE(MTYPE_COMPLETION, item);
                   }
-                vty_outln (vty, "");
+                vty_out (vty, VTYNL);
               }
             vector_free(varcomps);
           }
@@ -1186,7 +1186,7 @@ vty_stop_input (struct vty *vty)
 {
   vty->cp = vty->length = 0;
   vty_clear_buf (vty);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   switch (vty->node)
     {
@@ -1310,7 +1310,7 @@ vty_telnet_option (struct vty *vty, unsigned char *buf, int nbytes)
           break;
         }
     }
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
 #endif /* TELNET_OPTION_DEBUG */
 
@@ -1606,7 +1606,7 @@ vty_read (struct thread *thread)
           break;
         case '\n':
         case '\r':
-          vty_outln (vty, "");
+          vty_out (vty, VTYNL);
           vty_execute (vty);
           break;
         case '\t':
index b1b9ea54f94a9e8ac0201769d66cf0beeaf44156..5410027e70c820f1c15855fe65bbcf32c1e7d4fd 100644 (file)
@@ -868,7 +868,7 @@ static int interface_config_write(struct vty *vty)
                        if (nifp->ipsec_fallback_profile)
                                vty_out(vty, " fallback-profile %s",
                                        nifp->ipsec_fallback_profile);
-                       vty_outln (vty, "");
+                       vty_out (vty, VTYNL);
                }
                if (nifp->source)
                        vty_outln (vty, " tunnel source %s",
index b1a9cb05eb407bd780a5355fb2397b85db070545..2f157d98a01e93cf5cb24283d5bd83e4c2e9816b 100644 (file)
@@ -861,7 +861,7 @@ ospf6_show (struct vty *vty, struct ospf6 *o)
        vty_outln (vty, " Adjacency changes are logged");
     }
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   for (ALL_LIST_ELEMENTS_RO (o->area_list, n, oa))
     ospf6_area_show (vty, oa);
@@ -992,7 +992,7 @@ ospf6_distance_config_write (struct vty *vty)
       if (ospf6->distance_external)
         vty_out (vty, " external %u", ospf6->distance_external);
 
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 
   for (rn = route_top (ospf6->distance_table); rn; rn = route_next (rn))
index c927361f5949781908adef959998aaa28a200687..d09290e5207ca10befdbae8694402c5d7734cadf 100644 (file)
@@ -2201,7 +2201,7 @@ ospf_apiserver_show_info (struct vty *vty, struct ospf_lsa *lsa)
        {
          vty_out (vty, "0x%x ", olsa->data[i]);
        }
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
   else
     {
index c6724bdecd90d677ae4d28baa1f877dc96671bc2..3947d5182c612efa41555f1f474722a85b167e85 100644 (file)
@@ -1653,7 +1653,7 @@ show_debugging_ospf_common (struct vty *vty, struct ospf *ospf)
   if (IS_DEBUG_OSPF (nssa, NSSA) == OSPF_DEBUG_NSSA)
     vty_outln (vty, "  OSPF NSSA debugging is on");
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   return CMD_SUCCESS;
 }
index 1639949c828f5631a17ff8dd21e9080b075c74ed..05a5961385ff23b626842a2450f17f931c0e1f2b 100644 (file)
@@ -4788,7 +4788,7 @@ show_ip_ospf_database_header (struct vty *vty, struct ospf_lsa *lsa)
                 IS_ROUTER_LSA_VIRTUAL (rlsa) ? " VL-endpoint" : "",
                 IS_ROUTER_LSA_SHORTCUT (rlsa) ? " Shortcut" : "");
 
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
   vty_outln (vty, "  LS Type: %s",
              lookup_msg(ospf_lsa_type_msg, lsa->data->type, NULL));
index 0e0933adf16494b7b0eab87d1250741e01698fbd..0051298e4a48b2d5d22c15504f2cbbb35f59c5e5 100644 (file)
@@ -505,8 +505,8 @@ static void pim_print_ifp_flags(struct vty *vty, struct interface *ifp, int mloo
   vty_outln (vty, "Multicast Loop  : %d", mloop);
   vty_outln (vty, "Promiscuous     : %s",
             (ifp->flags & IFF_PROMISC) ? "yes" : "no");
-  vty_outln (vty, "");
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
+  vty_out (vty, VTYNL);
 }
 
 static void igmp_show_interfaces(struct vty *vty, u_char uj)
@@ -665,8 +665,8 @@ static void igmp_show_interfaces_single(struct vty *vty, const char *ifname, u_c
                   inet_ntoa(pim_ifp->primary_address));
         vty_outln (vty, "Uptime    : %s", uptime);
         vty_outln (vty, "Version   : %d", pim_ifp->igmp_version);
-        vty_outln (vty, "");
-        vty_outln (vty, "");
+        vty_out (vty, VTYNL);
+        vty_out (vty, VTYNL);
 
         vty_outln (vty, "Querier");
         vty_outln (vty, "-------");
@@ -675,8 +675,8 @@ static void igmp_show_interfaces_single(struct vty *vty, const char *ifname, u_c
         vty_outln (vty, "Start Count : %d", igmp->startup_query_count);
         vty_outln (vty, "Query Timer : %s", query_hhmmss);
         vty_outln (vty, "Other Timer : %s", other_hhmmss);
-        vty_outln (vty, "");
-        vty_outln (vty, "");
+        vty_out (vty, VTYNL);
+        vty_out (vty, VTYNL);
 
         vty_outln (vty, "Timers");
         vty_outln (vty, "------");
@@ -695,8 +695,8 @@ static void igmp_show_interfaces_single(struct vty *vty, const char *ifname, u_c
         vty_outln (vty, "Robustness Variable            : %d",
                   igmp->querier_robustness_variable);
         vty_outln (vty, "Startup Query Interval         : %ds", sqi);
-        vty_outln (vty, "");
-        vty_outln (vty, "");
+        vty_out (vty, VTYNL);
+        vty_out (vty, VTYNL);
 
         pim_print_ifp_flags(vty, ifp, mloop);
       }
@@ -941,7 +941,7 @@ static void pim_show_interfaces_single(struct vty *vty, const char *ifname, u_ch
       } else {
         vty_outln (vty, "Address    : %s", inet_ntoa(ifaddr));
       }
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
 
       // PIM neighbors
       print_header = 1;
@@ -962,8 +962,8 @@ static void pim_show_interfaces_single(struct vty *vty, const char *ifname, u_ch
       }
 
       if (!print_header) {
-        vty_outln (vty, "");
-        vty_outln (vty, "");
+        vty_out (vty, VTYNL);
+        vty_out (vty, VTYNL);
       }
 
       vty_outln (vty, "Designated Router");
@@ -973,8 +973,8 @@ static void pim_show_interfaces_single(struct vty *vty, const char *ifname, u_ch
       vty_outln (vty, "Uptime    : %s", dr_uptime);
       vty_outln (vty, "Elections : %d", pim_ifp->pim_dr_election_count);
       vty_outln (vty, "Changes   : %d", pim_ifp->pim_dr_election_changes);
-      vty_outln (vty, "");
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
+      vty_out (vty, VTYNL);
 
       // FHR
       print_header = 1;
@@ -998,8 +998,8 @@ static void pim_show_interfaces_single(struct vty *vty, const char *ifname, u_ch
       }
 
       if (!print_header) {
-        vty_outln (vty, "");
-        vty_outln (vty, "");
+        vty_out (vty, VTYNL);
+        vty_out (vty, VTYNL);
       }
 
       vty_outln (vty, "Hellos");
@@ -1014,8 +1014,8 @@ static void pim_show_interfaces_single(struct vty *vty, const char *ifname, u_ch
       vty_outln (vty, "Send Failed    : %d",
                 pim_ifp->pim_ifstat_hello_sendfail);
       vty_outln (vty, "Generation ID  : %08x", pim_ifp->pim_generation_id);
-      vty_outln (vty, "");
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
+      vty_out (vty, VTYNL);
 
       pim_print_ifp_flags(vty, ifp, mloop);
 
@@ -1029,8 +1029,8 @@ static void pim_show_interfaces_single(struct vty *vty, const char *ifname, u_ch
                 pim_if_effective_override_interval_msec(ifp));
       vty_outln (vty, "Join Prune Override Interval : %d msec",
                 pim_if_jp_override_interval_msec(ifp));
-      vty_outln (vty, "");
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
+      vty_out (vty, VTYNL);
 
       vty_outln (vty, "LAN Prune Delay");
       vty_outln (vty, "---------------");
@@ -1042,8 +1042,8 @@ static void pim_show_interfaces_single(struct vty *vty, const char *ifname, u_ch
                 pim_ifp->pim_override_interval_msec);
       vty_outln (vty, "Override Interval (Highest) : %d msec",
                 pim_ifp->pim_neighbors_highest_override_interval_msec);
-      vty_outln (vty, "");
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
+      vty_out (vty, VTYNL);
     }
   }
 
@@ -1153,7 +1153,7 @@ static void pim_show_interface_traffic (struct vty *vty, u_char uj)
     json = json_object_new_object ();
   else
     {
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
       vty_outln (vty, "%-12s%-17s%-17s%-17s%-17s%-17s%-17s", "Interface",
                "    HELLO", "    JOIN", "   PRUNE", "   REGISTER",
                "  REGISTER-STOP", "  ASSERT");
@@ -1227,7 +1227,7 @@ static void pim_show_interface_traffic_single (struct vty *vty, const char *ifna
     json = json_object_new_object ();
   else
     {
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
       vty_outln (vty, "%-12s%-17s%-17s%-17s%-17s%-17s%-17s", "Interface",
                "    HELLO", "    JOIN", "   PRUNE", "   REGISTER",
                "  REGISTER-STOP", "  ASSERT");
@@ -1537,7 +1537,7 @@ static void pim_show_neighbors_single(struct vty *vty, const char *neighbor, u_c
         vty_outln (vty, "    Hello Option - T-bit           : %s",
                   option_t_bit ? "yes" : "no");
         pim_bfd_show_info (vty, neigh->bfd_info, json_ifp, uj, 0);
-        vty_outln (vty, "");
+        vty_out (vty, VTYNL);
       }
     }
   }
@@ -1690,7 +1690,7 @@ pim_show_state(struct vty *vty, const char *src_or_group, const char *group, u_c
     }
 
     if (!uj)
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
   }
 
 
@@ -1699,7 +1699,7 @@ pim_show_state(struct vty *vty, const char *src_or_group, const char *group, u_c
                json_object_to_json_string_ext(json, JSON_C_TO_STRING_PRETTY));
     json_object_free(json);
   } else {
-    vty_outln (vty, "");
+    vty_out (vty, VTYNL);
   }
 }
 
@@ -2200,7 +2200,7 @@ static void pim_show_rpf(struct vty *vty, u_char uj)
     show_rpf_refresh_stats(vty, now, json);
   } else {
     show_rpf_refresh_stats(vty, now, json);
-    vty_outln (vty, "");
+    vty_out (vty, VTYNL);
     vty_outln (vty,
             "Source          Group           RpfIface RpfAddress      RibNextHop      Metric Pref");
   }
@@ -2277,7 +2277,7 @@ pim_print_pnc_cache_walkcb (struct hash_backet *backet, void *arg)
       vty_out (vty, "%-15s ", inet_ntoa (pnc->rpf.rpf_addr.u.prefix4));
       vty_out (vty, "%-14s ", ifp ? ifp->name : "NULL");
       vty_out (vty, "%s ", inet_ntoa (nh_node->gate.ipv4));
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
   return CMD_SUCCESS;
 }
@@ -3196,7 +3196,7 @@ static void show_multicast_interfaces(struct vty *vty)
   struct listnode  *node;
   struct interface *ifp;
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
   
   vty_outln (vty,
             "Interface Address         ifi Vif  PktsIn PktsOut    BytesIn   BytesOut");
@@ -3256,16 +3256,16 @@ DEFUN (show_ip_multicast,
   vty_outln (vty, "Mroute socket uptime: %s",
           uptime);
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   pim_zebra_zclient_update (vty);
   pim_zlookup_show_ip_multicast (vty);
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
   vty_outln (vty, "Maximum highest VifIndex: %d",
          PIM_MAX_USABLE_VIFS);
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
   vty_outln (vty, "Upstream Join Timer: %d secs",
            qpim_t_periodic);
   vty_outln (vty, "Join/Prune Holdtime: %d secs",
@@ -3275,11 +3275,11 @@ DEFUN (show_ip_multicast,
   vty_outln (vty, "PIM ECMP Rebalance: %s",
            qpim_ecmp_rebalance_enable ? "Enable" : "Disable");
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   show_rpf_refresh_stats(vty, now, NULL);
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   show_scan_oil_stats(vty, now);
 
@@ -3587,7 +3587,7 @@ static void show_mroute_count(struct vty *vty)
   struct channel_oil *c_oil;
   struct static_route *s_route;
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
   
   vty_outln (vty,
             "Source          Group           LastUsed Packets Bytes WrongIf  ");
@@ -6518,7 +6518,7 @@ ip_msdp_show_peers_detail(struct vty *vty, const char *peer, u_char uj)
           mp->ka_tx_cnt, mp->ka_rx_cnt);
       vty_outln (vty, "    SAs        : %10d %10d",
           mp->sa_tx_cnt, mp->sa_rx_cnt);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
   }
 
@@ -6687,7 +6687,7 @@ ip_msdp_show_sa_entry_detail(struct pim_msdp_sa *sa, const char *src_str,
     vty_outln (vty, "  SPT Setup   : %s", spt_str);
     vty_outln (vty, "  Uptime      : %s", timebuf);
     vty_outln (vty, "  State Timer : %s", statetimer);
-    vty_outln (vty, "");
+    vty_out (vty, VTYNL);
   }
 }
 
index 426241ac032f9259efa0970903570e89837f184d..5526881d2b9a6ea02594e63d8f3e097a2a53a48c 100644 (file)
@@ -254,7 +254,7 @@ int pim_interface_config_write(struct vty *vty)
        vty_out(vty, " ip pim hello %d", pim_ifp->pim_hello_period);
        if (pim_ifp->pim_default_holdtime != -1)
          vty_out(vty, " %d", pim_ifp->pim_default_holdtime);
-       vty_outln (vty, "");
+       vty_out (vty, VTYNL);
       }
 
       /* update source */
index 418e0933e1c7cee9adbe442d4d11323c3e205d9d..425b01c247cdf4310d3a25fa5208933b3c7bada8 100644 (file)
@@ -1922,7 +1922,7 @@ rip_interface_config_write (struct vty *vty)
             vty_out (vty, " auth-length old-ripd");
           else 
             vty_out (vty, " auth-length rfc");
-          vty_outln (vty, "");
+          vty_out (vty, VTYNL);
         }
 
       if (ri->auth_str)
index c05104b2900acd7f493db8e3885428881ebb078d..c07831fdd57145c30455ce776fe07048382319fd 100644 (file)
@@ -3534,7 +3534,7 @@ DEFUN (show_ip_rip,
            vty_out (vty, "%3"ROUTE_TAG_PRI, (route_tag_t)rinfo->tag);
          }
 
-       vty_outln (vty, "");
+       vty_out (vty, VTYNL);
       }
   return CMD_SUCCESS;
 }
@@ -3576,7 +3576,7 @@ DEFUN (show_ip_rip_status,
   /* Redistribute information. */
   vty_out (vty, "  Redistributing:");
   config_write_rip_redistribute (vty, 0);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   vty_out (vty, "  Default version control: send version %s,",
           lookup_msg(ri_version_msg,rip->version_send, NULL));
index 78bf350c9804f8349f689f607ae2972402cdd573..bfec173efcbccfff6e6c6a5e00b9639c33130a6a 100644 (file)
@@ -2026,7 +2026,7 @@ DEFUN (show_ipv6_ripng,
          vty_out (vty, "R(a) %s/%d ",
                         inet6_ntoa (p->prefix), p->prefixlen);
 #endif /* DEBUG */
-         vty_outln (vty, "");
+         vty_out (vty, VTYNL);
          vty_out (vty, "%*s", 18, " ");
 
          vty_out (vty, "%*s", 28, " ");
@@ -2051,7 +2051,7 @@ DEFUN (show_ipv6_ripng,
                         ripng_route_subtype_print(rinfo),
                         inet6_ntoa (p->prefix), p->prefixlen);
 #endif /* DEBUG */
-         vty_outln (vty, "");
+         vty_out (vty, VTYNL);
          vty_out (vty, "%*s", 18, " ");
          len = vty_out (vty, "%s", inet6_ntoa (rinfo->nexthop));
 
@@ -2089,7 +2089,7 @@ DEFUN (show_ipv6_ripng,
            ripng_vty_out_uptime (vty, rinfo);
          }
 
-         vty_outln (vty, "");
+         vty_out (vty, VTYNL);
        }
     }
 
@@ -2128,7 +2128,7 @@ DEFUN (show_ipv6_ripng_status,
   /* Redistribute information. */
   vty_out (vty, "  Redistributing:");
   ripng_redistribute_write (vty, 0);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   vty_out (vty, "  Default version control: send version %d,", ripng->version);
   vty_outln (vty, " receive version %d ",ripng->version);
index 2b5cf37ad6497fef919d8fbc457b58cc13eae4f6..d10861a6685432202e214de682447aede4fce99b 100644 (file)
@@ -814,7 +814,7 @@ vtysh_rl_describe (void)
                     fprintf (stdout, " %s", item);
                     XFREE (MTYPE_COMPLETION, item);
                   }
-                vty_outln (vty, "");
+                vty_out (vty, VTYNL);
               }
             vector_free (varcomps);
           }
@@ -2806,7 +2806,7 @@ DEFUN (vtysh_show_daemons,
   for (i = 0; i < array_size(vtysh_client); i++)
     if ( vtysh_client[i].fd >= 0 )
       vty_out(vty, " %s", vtysh_client[i].name);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   return CMD_SUCCESS;
 }
index 41c8c4949b27594be4148e15122f74175527ba24..a8ac405e3634d64d1e4730716b876f3654ecbbdb 100644 (file)
@@ -944,7 +944,7 @@ connected_dump_vty (struct vty *vty, struct connected *connected)
   if (connected->label)
     vty_out (vty, " %s", connected->label);
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 }
 
 /* Dump interface neighbor address information to vty. */
@@ -959,7 +959,7 @@ nbr_connected_dump_vty (struct vty *vty, struct nbr_connected *connected)
   prefix_vty_out (vty, p);
   vty_out (vty, "/%d", p->prefixlen);
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 }
 
 #if defined (HAVE_RTADV)
@@ -1089,14 +1089,14 @@ if_dump_vty (struct vty *vty, struct interface *ifp)
       vty_out (vty, "  HWaddr: ");
       for (i = 0; i < ifp->hw_addr_len; i++)
        vty_out (vty, "%s%02x", i == 0 ? "" : ":", ifp->hw_addr[i]);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
   
   /* Bandwidth in Mbps */
   if (ifp->bandwidth != 0)
     {
       vty_out(vty, "  bandwidth %u Mbps", ifp->bandwidth);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 
   for (rn = route_top (zebra_if->ipv4_subnets); rn; rn = route_next (rn))
@@ -1144,7 +1144,7 @@ if_dump_vty (struct vty *vty, struct interface *ifp)
               vty_out(vty, " Min:  %u (micro-sec.)", iflp->min_delay);
               vty_out(vty, " Max:  %u (micro-sec.)", iflp->max_delay);
             }
-          vty_outln (vty, "");
+          vty_out (vty, VTYNL);
         }
       if (IS_PARAM_SET(iflp, LP_DELAY_VAR))
         vty_outln (vty, "    Link Delay Variation %u (micro-sec.)",
@@ -1422,7 +1422,7 @@ if_show_description (struct vty *vty, vrf_id_t vrf_id)
 
       if (ifp->desc)
        vty_out (vty, "%s", ifp->desc);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 }
 
@@ -2767,7 +2767,7 @@ link_params_config_write (struct vty *vty, struct interface *ifp)
           vty_out(vty, " min %u", iflp->min_delay);
           vty_out(vty, " max %u", iflp->max_delay);
         }
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
   if (IS_PARAM_SET(iflp, LP_DELAY_VAR))
     vty_outln (vty, "  delay-variation %u", iflp->delay_var);
@@ -2844,7 +2844,7 @@ if_config_write (struct vty *vty)
                if (ifc->label)
                  vty_out (vty, " label %s", ifc->label);
 
-               vty_outln (vty, "");
+               vty_out (vty, VTYNL);
              }
          }
 
index 312f44b2293cd34b2b5196a307f555e5f2df9c6a..1b34e46ec44f1e9b643d8dc3e0abb0a8b9536bf0 100644 (file)
@@ -698,7 +698,7 @@ zebra_import_table_config (struct vty *vty)
               if (rmap_name)
                vty_out(vty, " route-map %s", rmap_name);
 
-             vty_outln (vty, "");
+             vty_out (vty, VTYNL);
              write = 1;
            }
        }
index ff5453c522c1c63573915846aec0390b020f6702..677189751d78ae2d6d1eaa7412ec9c9b96350959 100644 (file)
@@ -1561,7 +1561,7 @@ rtadv_config_write (struct vty *vty, struct interface *ifp)
        vty_out (vty, " no-autoconfig");
       if (rprefix->AdvRouterAddressFlag)
        vty_out (vty, " router-address");
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 }
 
index 56314ef102e9b3c644137eaa32fd5b4d4704e80b..a8e7f5372ccf3c7b910c8fd5600e214a16fb34d9 100644 (file)
@@ -534,14 +534,14 @@ fec_print (zebra_fec_t *fec, struct vty *vty)
   vty_out(vty, "  Label: %s", label2str(fec->label, buf, BUFSIZ));
   if (fec->label_index != MPLS_INVALID_LABEL_INDEX)
     vty_out(vty, ", Label Index: %u", fec->label_index);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
   if (!list_isempty(fec->client_list))
     {
       vty_out(vty, "  Client list:");
       for (ALL_LIST_ELEMENTS_RO(fec->client_list, node, client))
         vty_out(vty, " %s(fd %d)",
                 zebra_route_string(client->proto), client->sock);
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 }
 
@@ -1422,7 +1422,7 @@ nhlfe_print (zebra_nhlfe_t *nhlfe, struct vty *vty)
     }
   vty_out(vty, "%s", CHECK_FLAG (nhlfe->flags, NHLFE_FLAG_INSTALLED) ?
           " (installed)" : "");
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 }
 
 /*
@@ -2875,7 +2875,7 @@ zebra_mpls_print_lsp_table (struct vty *vty, struct zebra_vrf *zvrf,
             }
         }
 
-      vty_outln (vty, "");
+      vty_out (vty, VTYNL);
     }
 
   list_delete (lsp_list);
index e760ae6847955f6586da5c223595303d0a4c481e..c861efbddfe438d8b937486837e475339e518105 100644 (file)
@@ -1635,7 +1635,7 @@ vty_show_ip_route_summary (struct vty *vty, struct route_table *table)
   vty_outln (vty, "------");
   vty_outln (vty, "%-20s %-20d %-20d ", "Totals", rib_cnt[ZEBRA_ROUTE_TOTAL],
            fib_cnt[ZEBRA_ROUTE_TOTAL]);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 }
 
 /*
@@ -1713,7 +1713,7 @@ vty_show_ip_route_summary_prefix (struct vty *vty, struct route_table *table)
   vty_outln (vty, "------");
   vty_outln (vty, "%-20s %-20d %-20d ", "Totals", rib_cnt[ZEBRA_ROUTE_TOTAL],
           fib_cnt[ZEBRA_ROUTE_TOTAL]);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 }
 
 /* Show route summary.  */
@@ -1966,7 +1966,7 @@ static_config (struct vty *vty, afi_t afi, safi_t safi, const char *cmd)
                        mpls_label2str (si->snh_label.num_labels,
                                        si->snh_label.label, buf, sizeof buf, 0));
 
-            vty_outln (vty, "");
+            vty_out (vty, VTYNL);
 
             write = 1;
           }
@@ -3057,7 +3057,7 @@ DEFUN (show_vrf,
        vty_out (vty, "inactive");
      else
        vty_out (vty, "id %u table %u", zvrf_id (zvrf), zvrf->table_id);
-     vty_outln (vty, "");
+     vty_out (vty, VTYNL);
 
     }
 
index 7eead965b7f7c2b90bd4e72fadc97c54865410ae..72f738288201dd267c4df077b8518d3f93ac906c 100644 (file)
@@ -2674,7 +2674,7 @@ zebra_show_client_detail (struct vty *vty, struct zserv *client)
   vty_out (vty, "Client: %s", zebra_route_string(client->proto));
   if (client->instance)
     vty_out (vty, " Instance: %d", client->instance);
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   vty_outln (vty, "------------------------ ");
   vty_outln (vty, "FD: %d ", client->sock);
@@ -2705,7 +2705,7 @@ zebra_show_client_detail (struct vty *vty, struct zserv *client)
   if (client->last_write_time)
     vty_outln (vty, "Last Sent Cmd: %s ",
             zserv_command_string(client->last_write_cmd));
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
 
   vty_outln (vty, "Type        Add        Update     Del ");
   vty_outln (vty, "================================================== ");
@@ -2724,7 +2724,7 @@ zebra_show_client_detail (struct vty *vty, struct zserv *client)
   vty_outln (vty, "Interface Up Notifications: %d",client->ifup_cnt);
   vty_outln (vty, "Interface Down Notifications: %d",client->ifdown_cnt);
 
-  vty_outln (vty, "");
+  vty_out (vty, VTYNL);
   return;
 }