bgpd: Allow setting dampening for more address families

Until now, it was possible to set only for ipv4 unicast/multicast.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
Donatas Abraitis 2020-06-10 10:10:18 +03:00
parent 1edce7d2c8
commit abe702de9f

View File

@ -13513,14 +13513,21 @@ void bgp_route_init(void)
install_element(BGP_IPV6M_NODE, install_element(BGP_IPV6M_NODE,
&no_ipv6_bgp_distance_source_access_list_cmd); &no_ipv6_bgp_distance_source_access_list_cmd);
/* BGP dampening */
install_element(BGP_NODE, &bgp_damp_set_cmd); install_element(BGP_NODE, &bgp_damp_set_cmd);
install_element(BGP_NODE, &bgp_damp_unset_cmd); install_element(BGP_NODE, &bgp_damp_unset_cmd);
install_element(BGP_IPV4_NODE, &bgp_damp_set_cmd); install_element(BGP_IPV4_NODE, &bgp_damp_set_cmd);
install_element(BGP_IPV4_NODE, &bgp_damp_unset_cmd); install_element(BGP_IPV4_NODE, &bgp_damp_unset_cmd);
/* IPv4 Multicast Mode */
install_element(BGP_IPV4M_NODE, &bgp_damp_set_cmd); install_element(BGP_IPV4M_NODE, &bgp_damp_set_cmd);
install_element(BGP_IPV4M_NODE, &bgp_damp_unset_cmd); install_element(BGP_IPV4M_NODE, &bgp_damp_unset_cmd);
install_element(BGP_IPV4L_NODE, &bgp_damp_set_cmd);
install_element(BGP_IPV4L_NODE, &bgp_damp_unset_cmd);
install_element(BGP_IPV6_NODE, &bgp_damp_set_cmd);
install_element(BGP_IPV6_NODE, &bgp_damp_unset_cmd);
install_element(BGP_IPV6M_NODE, &bgp_damp_set_cmd);
install_element(BGP_IPV6M_NODE, &bgp_damp_unset_cmd);
install_element(BGP_IPV6L_NODE, &bgp_damp_set_cmd);
install_element(BGP_IPV6L_NODE, &bgp_damp_unset_cmd);
/* Large Communities */ /* Large Communities */
install_element(VIEW_NODE, &show_ip_bgp_large_community_list_cmd); install_element(VIEW_NODE, &show_ip_bgp_large_community_list_cmd);