]> git.puffer.fish Git - matthieu/frr.git/commitdiff
*: Add necessary new line for output of vty_out()
authoranlan_cs <vic.lan@pica8.com>
Sun, 27 Feb 2022 01:38:29 +0000 (09:38 +0800)
committeranlan_cs <vic.lan@pica8.com>
Sun, 27 Feb 2022 02:59:19 +0000 (10:59 +0800)
Signed-off-by: anlan_cs <vic.lan@pica8.com>
bgpd/bgp_evpn_vty.c
bgpd/bgp_rpki.c
bgpd/bgp_vty.c
lib/command.c
ospfd/ospf_vty.c
pbrd/pbr_vty.c
sharpd/sharp_vty.c
zebra/zebra_vty.c

index caf0444850bbc407828ea093017a67e244103cde..557f4ce125eaeecf94ac878d675f72b71799345f 100644 (file)
@@ -3865,19 +3865,19 @@ DEFUN (bgp_evpn_advertise_type5,
 
        if (!(afi == AFI_IP || afi == AFI_IP6)) {
                vty_out(vty,
-                       "%%only ipv4 or ipv6 address families are supported");
+                       "%%only ipv4 or ipv6 address families are supported\n");
                return CMD_WARNING;
        }
 
        if (safi != SAFI_UNICAST) {
                vty_out(vty,
-                       "%%only ipv4 unicast or ipv6 unicast are supported");
+                       "%%only ipv4 unicast or ipv6 unicast are supported\n");
                return CMD_WARNING;
        }
 
        if ((oly != OVERLAY_INDEX_TYPE_NONE)
            && (oly != OVERLAY_INDEX_GATEWAY_IP)) {
-               vty_out(vty, "%%Unknown overlay-index type specified");
+               vty_out(vty, "%%Unknown overlay-index type specified\n");
                return CMD_WARNING;
        }
 
@@ -4056,13 +4056,13 @@ DEFUN (no_bgp_evpn_advertise_type5,
 
        if (!(afi == AFI_IP || afi == AFI_IP6)) {
                vty_out(vty,
-                       "%%only ipv4 or ipv6 address families are supported");
+                       "%%only ipv4 or ipv6 address families are supported\n");
                return CMD_WARNING;
        }
 
        if (safi != SAFI_UNICAST) {
                vty_out(vty,
-                       "%%only ipv4 unicast or ipv6 unicast are supported");
+                       "%%only ipv4 unicast or ipv6 unicast are supported\n");
                return CMD_WARNING;
        }
 
index 5d1ae766e26972bfba15f8bc32ba3dc09137b854..857462a601d26c2450efa31dcb7a91e627e0a340 100644 (file)
@@ -1261,7 +1261,7 @@ DEFPY (show_rpki_prefix,
        if (pfx_table_validate_r(rtr_config->pfx_table, &matches, &match_count,
                                 asn, &addr, prefix->prefixlen, &result)
            != PFX_SUCCESS) {
-               vty_out(vty, "Prefix lookup failed");
+               vty_out(vty, "Prefix lookup failed\n");
                return CMD_WARNING;
        }
 
index afe4c7ae6fe996f73cb0ef9a7dbbc02c8f7ac31e..d21e257cb5e91ac06a8ebadecbebba10ec29f3e8 100644 (file)
@@ -8566,7 +8566,7 @@ DEFPY (af_sid_vpn_export,
 
        if (!yes) {
                /* implement me */
-               vty_out(vty, "It's not implemented");
+               vty_out(vty, "It's not implemented\n");
                return CMD_WARNING_CONFIG_FAILED;
        }
 
index ebdbf162d14286225f06656a8899ed32e2a1414c..1989668bf09fb52902a395f1c7f75278d076f459 100644 (file)
@@ -2239,9 +2239,9 @@ DEFUN (banner_motd_file,
        int cmd = cmd_banner_motd_file(filename);
 
        if (cmd == CMD_ERR_NO_FILE)
-               vty_out(vty, "%s does not exist", filename);
+               vty_out(vty, "%s does not exist\n", filename);
        else if (cmd == CMD_WARNING_CONFIG_FAILED)
-               vty_out(vty, "%s must be in %s", filename, SYSCONFDIR);
+               vty_out(vty, "%s must be in %s\n", filename, SYSCONFDIR);
 
        return cmd;
 }
index 0b7c3c6831cd5a3643ce5d3d859063659df1bbfb..780521bfe4f4e067bb2e362cfb3e04cdf5968ad0 100644 (file)
@@ -9705,7 +9705,7 @@ DEFUN (ospf_max_metric_router_lsa_startup,
        unsigned int seconds;
 
        if (argc < 4) {
-               vty_out(vty, "%% Must supply stub-router period");
+               vty_out(vty, "%% Must supply stub-router period\n");
                return CMD_WARNING_CONFIG_FAILED;
        }
 
@@ -9761,7 +9761,7 @@ DEFUN (ospf_max_metric_router_lsa_shutdown,
        unsigned int seconds;
 
        if (argc < 4) {
-               vty_out(vty, "%% Must supply stub-router shutdown period");
+               vty_out(vty, "%% Must supply stub-router shutdown period\n");
                return CMD_WARNING_CONFIG_FAILED;
        }
 
index 21c1409e91fc46c4ac8fb668f9c4b4ce8507698f..b5946bd40d1535f947968f16afe8480aaa5ccd75 100644 (file)
@@ -358,7 +358,7 @@ DEFPY(pbr_map_match_mark, pbr_map_match_mark_cmd,
        struct pbr_map_sequence *pbrms = VTY_GET_CONTEXT(pbr_map_sequence);
 
 #ifndef GNU_LINUX
-       vty_out(vty, "pbr marks are not supported on this platform");
+       vty_out(vty, "pbr marks are not supported on this platform\n");
        return CMD_WARNING_CONFIG_FAILED;
 #endif
 
index ceed9cf739ed5b316e1480a5f15355ac79a69a14..78cc57cc4445535214da03dca5b151464b01e41c 100644 (file)
@@ -540,7 +540,7 @@ DEFPY(vrf_label, vrf_label_cmd,
                vrf = vrf_lookup_by_name(vrf_name);
 
        if (!vrf) {
-               vty_out(vty, "Unable to find vrf you silly head");
+               vty_out(vty, "Unable to find vrf you silly head\n");
                return CMD_WARNING_CONFIG_FAILED;
        }
 
index 1d9ed4ddd9c7b5d79c2f4b3b2eb0a757ec55fa2c..bb1623211821003bbd1003161c84b87a23b3cc01 100644 (file)
@@ -3425,7 +3425,7 @@ DEFUN (show_evpn_mac_vni_mac,
 
        vni = strtoul(argv[4]->arg, NULL, 10);
        if (!prefix_str2mac(argv[6]->arg, &mac)) {
-               vty_out(vty, "%% Malformed MAC address");
+               vty_out(vty, "%% Malformed MAC address\n");
                return CMD_WARNING;
        }
        zvrf = zebra_vrf_get_evpn();