]> git.proxmox.com Git - mirror_frr.git/blobdiff - pbrd/pbr_vty.c
Merge pull request #10447 from ton31337/fix/json_with_whitespaces
[mirror_frr.git] / pbrd / pbr_vty.c
index c9ec532bb92e616521f24025ff0338c4cf106cd7..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
 
@@ -506,7 +506,8 @@ DEFPY(pbr_map_nexthop_group, pbr_map_nexthop_group_cmd,
        /* This is new/replacement config */
        pbrms_clear_set_config(pbrms);
 
-       pbrms->nhgrp_name = XSTRDUP(MTYPE_TMP, name);
+       pbr_nht_set_seq_nhg(pbrms, name);
+
        pbr_map_check(pbrms, true);
 
        return CMD_SUCCESS;