]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ripngd: fix route redistribution with route-maps
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 17 Dec 2018 14:28:21 +0000 (12:28 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 17 Dec 2018 14:28:21 +0000 (12:28 -0200)
This fix isn't necessary on master since ripngd is now using only
DEFPY for configuration commands after the northbound conversion.

Reported-by: Christoffer Hansen <netravnen@gmail.com>
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ripngd/ripng_zebra.c

index 6830e0e926a0c4adaacc981c196fbfa6ea65fc9d..1717b01209ff9663845260699351f2996ea7b2b3 100644 (file)
@@ -330,7 +330,7 @@ DEFUN (ripng_redistribute_type_routemap,
                return CMD_WARNING_CONFIG_FAILED;
        }
 
-       ripng_redistribute_routemap_set(type, argv[idx_word]->text);
+       ripng_redistribute_routemap_set(type, argv[idx_word]->arg);
        zclient_redistribute(ZEBRA_REDISTRIBUTE_ADD, zclient, AFI_IP6, type, 0,
                             VRF_DEFAULT);
        return CMD_SUCCESS;
@@ -361,7 +361,7 @@ DEFUN (ripng_redistribute_type_metric_routemap,
        }
 
        ripng_redistribute_metric_set(type, metric);
-       ripng_redistribute_routemap_set(type, argv[idx_word]->text);
+       ripng_redistribute_routemap_set(type, argv[idx_word]->arg);
        zclient_redistribute(ZEBRA_REDISTRIBUTE_ADD, zclient, AFI_IP6, type, 0,
                             VRF_DEFAULT);
        return CMD_SUCCESS;