]> git.puffer.fish Git - mirror/frr.git/commitdiff
*: Add necessary new line for output of vty_out() 10671/head
authoranlan_cs <vic.lan@pica8.com>
Sun, 27 Feb 2022 01:38:29 +0000 (09:38 +0800)
committermergify-bot <noreply@mergify.com>
Sun, 27 Feb 2022 12:44:34 +0000 (12:44 +0000)
Signed-off-by: anlan_cs <vic.lan@pica8.com>
(cherry picked from commit 4d4c404bf6f82ec7df67baff072e4f237c47180e)

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 f377c8352b4428db267b9b5a723e99e0219ed694..0209cb32ed9e480c145b80055b73d4d4e7818e2b 100644 (file)
@@ -3859,19 +3859,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;
        }
 
@@ -4050,13 +4050,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 e5027359e71a56feb0dfff31deea4afee1c8460a..f1ee1c9ad73e7d6b8af79e0327615a2436bfd0e8 100644 (file)
@@ -1262,7 +1262,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 95c06bd21edb1941b1dba9349312eb54871cf2b1..4df2abef85f508210b506768fa8cdb3b74890a33 100644 (file)
@@ -8568,7 +8568,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 9cf93ea19236b4a13c75fb1fa744ef46df72bbcc..3718c145940aef5c1c3aa6bd0251c94b2f59f1a8 100644 (file)
@@ -2223,9 +2223,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 a5bb6ae46bac2a212540561f6b38c30a6bc686a4..1adf42dce8e46bbaa4c64d95817fb00877c963ce 100644 (file)
@@ -9682,7 +9682,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;
        }
 
@@ -9738,7 +9738,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 0a323f744e188d017d27a9ba0186e6e3c29b0ae6..5bf5f8af93ce8d98c48f1ee4999422bb5a02b5f7 100644 (file)
@@ -532,7 +532,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 f35c9f65fb0f0dcb75667c85ab3c9a47ff77cccc..0a3d676a928fc51a8c769d759b39cc2b9e1c23c7 100644 (file)
@@ -3422,7 +3422,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();