mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 17:12:33 +00:00
lib: Remove dead code
The distribute_list_init command is not used and is setup code that will never be used because it makes assumptions about how distribute-lists work that are fundamentally incorrect. Remove the code. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
32282a6ecf
commit
eda0ea2949
@ -486,20 +486,3 @@ struct distribute_ctx *distribute_list_ctx_create(struct vrf *vrf)
|
||||
listnode_add(dist_ctx_list, ctx);
|
||||
return ctx;
|
||||
}
|
||||
|
||||
/* Initialize distribute list vty commands */
|
||||
void distribute_list_init(int node)
|
||||
{
|
||||
/* TODO: install v4 syntax command for v6 only protocols. */
|
||||
/* if (node == RIPNG_NODE) {
|
||||
* install_element (node, &ipv6_as_v4_distribute_list_all_cmd);
|
||||
* install_element (node, &no_ipv6_as_v4_distribute_list_all_cmd);
|
||||
* install_element (node, &ipv6_as_v4_distribute_list_cmd);
|
||||
* install_element (node, &no_ipv6_as_v4_distribute_list_cmd);
|
||||
* install_element (node, &ipv6_as_v4_distribute_list_prefix_all_cmd);
|
||||
* install_element (node,
|
||||
&no_ipv6_as_v4_distribute_list_prefix_all_cmd);
|
||||
* install_element (node, &ipv6_as_v4_distribute_list_prefix_cmd);
|
||||
* install_element (node, &no_ipv6_as_v4_distribute_list_prefix_cmd);
|
||||
}*/
|
||||
}
|
||||
|
@ -64,7 +64,6 @@ struct distribute_ctx {
|
||||
};
|
||||
|
||||
/* Prototypes for distribute-list. */
|
||||
extern void distribute_list_init(int node);
|
||||
extern struct distribute_ctx *distribute_list_ctx_create(struct vrf *vrf);
|
||||
extern void distribute_list_delete(struct distribute_ctx **ctx);
|
||||
extern void distribute_list_add_hook(struct distribute_ctx *ctx,
|
||||
|
Loading…
Reference in New Issue
Block a user