Commits
paul authored a2c6283126a
560 560 | (di->damping == ON ? 'D' : ' '), buf, |
561 561 | (u_int) (di->penalty * |
562 562 | ospf6_damp_decay (t_now - di->t_updated)), |
563 563 | VTY_NEWLINE); |
564 564 | } |
565 565 | } |
566 566 | |
567 567 | return CMD_SUCCESS; |
568 568 | } |
569 569 | |
570 - | DEFUN (flap_damping_route, |
571 - | flap_damping_route_cmd, |
570 + | DEFUN (ospf6_flap_damping_route, |
571 + | ospf6_flap_damping_route_cmd, |
572 572 | "flap-damping route <0-4294967295> <0-4294967295> " |
573 573 | "<0-4294967295> <0-4294967295>", |
574 574 | "enable flap dampening\n" |
575 575 | "enable route flap dampening\n" |
576 576 | "half-life in second\n" |
577 577 | "reuse value\n" |
578 578 | "suppress value\n" |
579 579 | "t-hold in second (maximum time that the target can be damped)\n" |
580 580 | ) |
581 581 | { |
727 727 | void |
728 728 | ospf6_damp_init () |
729 729 | { |
730 730 | int i; |
731 731 | for (i = 0; i < OSPF6_DAMP_TYPE_MAX; i++) |
732 732 | damp_info_table[i] = route_table_init (); |
733 733 | |
734 734 | install_element (VIEW_NODE, &show_ipv6_ospf6_route_flapping_cmd); |
735 735 | install_element (ENABLE_NODE, &show_ipv6_ospf6_route_flapping_cmd); |
736 736 | install_element (ENABLE_NODE, &show_ipv6_ospf6_camp_config_cmd); |
737 - | install_element (OSPF6_NODE, &flap_damping_route_cmd); |
737 + | install_element (OSPF6_NODE, &ospf6_flap_damping_route_cmd); |
738 738 | |
739 739 | install_element (ENABLE_NODE, &show_debug_ospf6_damp_cmd); |
740 740 | install_element (CONFIG_NODE, &debug_ospf6_damp_cmd); |
741 741 | install_element (CONFIG_NODE, &no_debug_ospf6_damp_cmd); |
742 742 | |
743 743 | thread_add_event (master, ospf6_damp_debug_thread, NULL, 0); |
744 744 | } |
745 745 | |
746 746 | /* HAVE_OSPF6_DAMP */ |
747 747 | |
748 748 | |