summaryrefslogtreecommitdiffstats
path: root/babeld
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2024-01-22 02:15:38 +0100
committerChristian Hopps <chopps@labn.net>2024-01-22 12:32:29 +0100
commita993b8e9bb71407e4adb478e8a57f35fdf85febd (patch)
tree72a8a9134010111501471575a82375a0a130db05 /babeld
parentlib: add northbound support to distribute-list code. (diff)
downloadfrr-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.c9
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);
}