diff options
author | Christian Hopps <chopps@labn.net> | 2024-01-22 02:15:38 +0100 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2024-01-22 12:32:29 +0100 |
commit | a993b8e9bb71407e4adb478e8a57f35fdf85febd (patch) | |
tree | 72a8a9134010111501471575a82375a0a130db05 /babeld | |
parent | lib: add northbound support to distribute-list code. (diff) | |
download | frr-a993b8e9bb71407e4adb478e8a57f35fdf85febd.tar.xz frr-a993b8e9bb71407e4adb478e8a57f35fdf85febd.zip |
lib: enable multiple instance support with distribute lists
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'babeld')
-rw-r--r-- | babeld/babeld.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/babeld/babeld.c b/babeld/babeld.c index 41fac6251..797d12478 100644 --- a/babeld/babeld.c +++ b/babeld/babeld.c @@ -710,7 +710,7 @@ DEFUN (babel_distribute_list, if (argv[argc - 1]->type == VARIABLE_TKN) ifname = argv[argc - 1]->arg; - return distribute_list_parser(prefix, true, argv[2 + prefix]->text, + return distribute_list_parser(NULL, prefix, true, argv[2 + prefix]->text, argv[1 + prefix]->arg, ifname); } @@ -731,7 +731,7 @@ DEFUN (babel_no_distribute_list, if (argv[argc - 1]->type == VARIABLE_TKN) ifname = argv[argc - 1]->arg; - return distribute_list_no_parser(vty, prefix, true, + return distribute_list_no_parser(NULL, vty, prefix, true, argv[3 + prefix]->text, argv[2 + prefix]->arg, ifname); } @@ -753,7 +753,8 @@ DEFUN (babel_ipv6_distribute_list, if (argv[argc - 1]->type == VARIABLE_TKN) ifname = argv[argc - 1]->arg; - return distribute_list_parser(prefix, false, argv[3 + prefix]->text, + return distribute_list_parser(NULL, prefix, false, + argv[3 + prefix]->text, argv[2 + prefix]->arg, ifname); } @@ -775,7 +776,7 @@ DEFUN (babel_no_ipv6_distribute_list, if (argv[argc - 1]->type == VARIABLE_TKN) ifname = argv[argc - 1]->arg; - return distribute_list_no_parser(vty, prefix, false, + return distribute_list_no_parser(NULL, vty, prefix, false, argv[4 + prefix]->text, argv[3 + prefix]->arg, ifname); } |