diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-22 22:00:18 +0100 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-22 22:00:18 +0100 |
commit | 47aa9fe18c5e13ea35a660fa620a85252f37205b (patch) | |
tree | 8c62d4201cacc23c561e579bfd4dc86b9bae5775 /babeld | |
parent | eigrpd: convert distribute-list configuration to northbound (diff) | |
download | frr-47aa9fe18c5e13ea35a660fa620a85252f37205b.tar.xz frr-47aa9fe18c5e13ea35a660fa620a85252f37205b.zip |
babeld: pass distribute ctx to distribute-list functions
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'babeld')
-rw-r--r-- | babeld/babeld.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/babeld/babeld.c b/babeld/babeld.c index 797d12478..26aed512a 100644 --- a/babeld/babeld.c +++ b/babeld/babeld.c @@ -710,7 +710,8 @@ DEFUN (babel_distribute_list, if (argv[argc - 1]->type == VARIABLE_TKN) ifname = argv[argc - 1]->arg; - return distribute_list_parser(NULL, prefix, true, argv[2 + prefix]->text, + return distribute_list_parser(babel_routing_process->distribute_ctx, + prefix, true, argv[2 + prefix]->text, argv[1 + prefix]->arg, ifname); } @@ -731,7 +732,8 @@ DEFUN (babel_no_distribute_list, if (argv[argc - 1]->type == VARIABLE_TKN) ifname = argv[argc - 1]->arg; - return distribute_list_no_parser(NULL, vty, prefix, true, + return distribute_list_no_parser(babel_routing_process->distribute_ctx, + vty, prefix, true, argv[3 + prefix]->text, argv[2 + prefix]->arg, ifname); } @@ -753,8 +755,8 @@ DEFUN (babel_ipv6_distribute_list, if (argv[argc - 1]->type == VARIABLE_TKN) ifname = argv[argc - 1]->arg; - return distribute_list_parser(NULL, prefix, false, - argv[3 + prefix]->text, + return distribute_list_parser(babel_routing_process->distribute_ctx, + prefix, false, argv[3 + prefix]->text, argv[2 + prefix]->arg, ifname); } @@ -776,7 +778,8 @@ DEFUN (babel_no_ipv6_distribute_list, if (argv[argc - 1]->type == VARIABLE_TKN) ifname = argv[argc - 1]->arg; - return distribute_list_no_parser(NULL, vty, prefix, false, + return distribute_list_no_parser(babel_routing_process->distribute_ctx, + vty, prefix, false, argv[4 + prefix]->text, argv[3 + prefix]->arg, ifname); } |