1 /* BGP-4, BGP-4+ packet debug routine
2 Copyright (C) 1996, 97, 99 Kunihiro Ishiguro
4 This file is part of GNU Zebra.
6 GNU Zebra is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 GNU Zebra is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Zebra; see the file COPYING. If not, write to the Free
18 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23 #include <lib/version.h>
30 #include "sockunion.h"
32 #include "bgpd/bgpd.h"
33 #include "bgpd/bgp_aspath.h"
34 #include "bgpd/bgp_route.h"
35 #include "bgpd/bgp_attr.h"
36 #include "bgpd/bgp_debug.h"
37 #include "bgpd/bgp_community.h"
39 unsigned long conf_bgp_debug_fsm
;
40 unsigned long conf_bgp_debug_events
;
41 unsigned long conf_bgp_debug_packet
;
42 unsigned long conf_bgp_debug_filter
;
43 unsigned long conf_bgp_debug_keepalive
;
44 unsigned long conf_bgp_debug_update
;
45 unsigned long conf_bgp_debug_normal
;
47 unsigned long term_bgp_debug_fsm
;
48 unsigned long term_bgp_debug_events
;
49 unsigned long term_bgp_debug_packet
;
50 unsigned long term_bgp_debug_filter
;
51 unsigned long term_bgp_debug_keepalive
;
52 unsigned long term_bgp_debug_update
;
53 unsigned long term_bgp_debug_normal
;
55 /* messages for BGP-4 status */
56 struct message bgp_status_msg
[] =
60 { Connect
, "Connect" },
62 { OpenSent
, "OpenSent" },
63 { OpenConfirm
, "OpenConfirm" },
64 { Established
, "Established" },
66 int bgp_status_msg_max
= BGP_STATUS_MAX
;
68 /* BGP message type string. */
69 char *bgp_type_str
[] =
80 /* message for BGP-4 Notify */
81 struct message bgp_notify_msg
[] =
84 { BGP_NOTIFY_HEADER_ERR
, "Message Header Error"},
85 { BGP_NOTIFY_OPEN_ERR
, "OPEN Message Error"},
86 { BGP_NOTIFY_UPDATE_ERR
, "UPDATE Message Error"},
87 { BGP_NOTIFY_HOLD_ERR
, "Hold Timer Expired"},
88 { BGP_NOTIFY_FSM_ERR
, "Finite State Machine Error"},
89 { BGP_NOTIFY_CEASE
, "Cease"},
90 { BGP_NOTIFY_CAPABILITY_ERR
, "CAPABILITY Message Error"},
92 int bgp_notify_msg_max
= BGP_NOTIFY_MAX
;
94 struct message bgp_notify_head_msg
[] =
97 { BGP_NOTIFY_HEADER_NOT_SYNC
, "/Connection Not Synchronized"},
98 { BGP_NOTIFY_HEADER_BAD_MESLEN
, "/Bad Message Length"},
99 { BGP_NOTIFY_HEADER_BAD_MESTYPE
, "/Bad Message Type"}
101 int bgp_notify_head_msg_max
= BGP_NOTIFY_HEADER_MAX
;
103 struct message bgp_notify_open_msg
[] =
106 { BGP_NOTIFY_OPEN_UNSUP_VERSION
, "/Unsupported Version Number" },
107 { BGP_NOTIFY_OPEN_BAD_PEER_AS
, "/Bad Peer AS"},
108 { BGP_NOTIFY_OPEN_BAD_BGP_IDENT
, "/Bad BGP Identifier"},
109 { BGP_NOTIFY_OPEN_UNSUP_PARAM
, "/Unsupported Optional Parameter"},
110 { BGP_NOTIFY_OPEN_AUTH_FAILURE
, "/Authentication Failure"},
111 { BGP_NOTIFY_OPEN_UNACEP_HOLDTIME
, "/Unacceptable Hold Time"},
112 { BGP_NOTIFY_OPEN_UNSUP_CAPBL
, "/Unsupported Capability"},
114 int bgp_notify_open_msg_max
= BGP_NOTIFY_OPEN_MAX
;
116 struct message bgp_notify_update_msg
[] =
119 { BGP_NOTIFY_UPDATE_MAL_ATTR
, "/Malformed Attribute List"},
120 { BGP_NOTIFY_UPDATE_UNREC_ATTR
, "/Unrecognized Well-known Attribute"},
121 { BGP_NOTIFY_UPDATE_MISS_ATTR
, "/Missing Well-known Attribute"},
122 { BGP_NOTIFY_UPDATE_ATTR_FLAG_ERR
, "/Attribute Flags Error"},
123 { BGP_NOTIFY_UPDATE_ATTR_LENG_ERR
, "/Attribute Length Error"},
124 { BGP_NOTIFY_UPDATE_INVAL_ORIGIN
, "/Invalid ORIGIN Attribute"},
125 { BGP_NOTIFY_UPDATE_AS_ROUTE_LOOP
, "/AS Routing Loop"},
126 { BGP_NOTIFY_UPDATE_INVAL_NEXT_HOP
, "/Invalid NEXT_HOP Attribute"},
127 { BGP_NOTIFY_UPDATE_OPT_ATTR_ERR
, "/Optional Attribute Error"},
128 { BGP_NOTIFY_UPDATE_INVAL_NETWORK
, "/Invalid Network Field"},
129 { BGP_NOTIFY_UPDATE_MAL_AS_PATH
, "/Malformed AS_PATH"},
131 int bgp_notify_update_msg_max
= BGP_NOTIFY_UPDATE_MAX
;
133 struct message bgp_notify_cease_msg
[] =
136 { BGP_NOTIFY_CEASE_MAX_PREFIX
, "/Maximum Number of Prefixes Reached"},
137 { BGP_NOTIFY_CEASE_ADMIN_SHUTDOWN
, "/Administratively Shutdown"},
138 { BGP_NOTIFY_CEASE_PEER_UNCONFIG
, "/Peer Unconfigured"},
139 { BGP_NOTIFY_CEASE_ADMIN_RESET
, "/Administratively Reset"},
140 { BGP_NOTIFY_CEASE_CONNECT_REJECT
, "/Connection Rejected"},
141 { BGP_NOTIFY_CEASE_CONFIG_CHANGE
, "/Other Configuration Change"},
142 { BGP_NOTIFY_CEASE_COLLISION_RESOLUTION
, "/Connection collision resolution"},
143 { BGP_NOTIFY_CEASE_OUT_OF_RESOURCE
, "/Out of Resource"},
145 int bgp_notify_cease_msg_max
= BGP_NOTIFY_CEASE_MAX
;
147 struct message bgp_notify_capability_msg
[] =
150 { BGP_NOTIFY_CAPABILITY_INVALID_ACTION
, "/Invalid Action Value" },
151 { BGP_NOTIFY_CAPABILITY_INVALID_LENGTH
, "/Invalid Capability Length"},
152 { BGP_NOTIFY_CAPABILITY_MALFORMED_CODE
, "/Malformed Capability Value"},
154 int bgp_notify_capability_msg_max
= BGP_NOTIFY_CAPABILITY_MAX
;
156 /* Origin strings. */
157 char *bgp_origin_str
[] = {"i","e","?"};
158 char *bgp_origin_long_str
[] = {"IGP","EGP","incomplete"};
160 /* Dump attribute. */
162 bgp_dump_attr (struct peer
*peer
, struct attr
*attr
, char *buf
, size_t size
)
167 if (CHECK_FLAG (attr
->flag
, ATTR_FLAG_BIT (BGP_ATTR_NEXT_HOP
)))
168 snprintf (buf
, size
, "nexthop %s", inet_ntoa (attr
->nexthop
));
170 if (CHECK_FLAG (attr
->flag
, ATTR_FLAG_BIT (BGP_ATTR_ORIGIN
)))
171 snprintf (buf
+ strlen (buf
), size
- strlen (buf
), ", origin %s",
172 bgp_origin_str
[attr
->origin
]);
176 char addrbuf
[BUFSIZ
];
179 if (attr
->mp_nexthop_len
== 16 || attr
->mp_nexthop_len
== 32)
180 snprintf (buf
+ strlen (buf
), size
- strlen (buf
), ", mp_nexthop %s",
181 inet_ntop (AF_INET6
, &attr
->mp_nexthop_global
,
184 if (attr
->mp_nexthop_len
== 32)
185 snprintf (buf
+ strlen (buf
), size
- strlen (buf
), "(%s)",
186 inet_ntop (AF_INET6
, &attr
->mp_nexthop_local
,
189 #endif /* HAVE_IPV6 */
191 if (CHECK_FLAG (attr
->flag
, ATTR_FLAG_BIT (BGP_ATTR_LOCAL_PREF
)))
192 snprintf (buf
+ strlen (buf
), size
- strlen (buf
), ", localpref %d",
195 if (CHECK_FLAG (attr
->flag
, ATTR_FLAG_BIT (BGP_ATTR_MULTI_EXIT_DISC
)))
196 snprintf (buf
+ strlen (buf
), size
- strlen (buf
), ", metric %d",
199 if (CHECK_FLAG (attr
->flag
, ATTR_FLAG_BIT (BGP_ATTR_COMMUNITIES
)))
200 snprintf (buf
+ strlen (buf
), size
- strlen (buf
), ", community %s",
201 community_str (attr
->community
));
203 if (CHECK_FLAG (attr
->flag
, ATTR_FLAG_BIT (BGP_ATTR_ATOMIC_AGGREGATE
)))
204 snprintf (buf
+ strlen (buf
), size
- strlen (buf
), ", atomic-aggregate");
206 if (CHECK_FLAG (attr
->flag
, ATTR_FLAG_BIT (BGP_ATTR_AGGREGATOR
)))
207 snprintf (buf
+ strlen (buf
), size
- strlen (buf
), ", aggregated by %d %s",
208 attr
->aggregator_as
, inet_ntoa (attr
->aggregator_addr
));
210 if (CHECK_FLAG (attr
->flag
, ATTR_FLAG_BIT (BGP_ATTR_ORIGINATOR_ID
)))
211 snprintf (buf
+ strlen (buf
), size
- strlen (buf
), ", originator %s",
212 inet_ntoa (attr
->originator_id
));
214 if (CHECK_FLAG (attr
->flag
, ATTR_FLAG_BIT (BGP_ATTR_CLUSTER_LIST
)))
218 snprintf (buf
+ strlen (buf
), size
- strlen (buf
), ", clusterlist");
219 for (i
= 0; i
< attr
->cluster
->length
/ 4; i
++)
220 snprintf (buf
+ strlen (buf
), size
- strlen (buf
), " %s",
221 inet_ntoa (attr
->cluster
->list
[i
]));
224 if (CHECK_FLAG (attr
->flag
, ATTR_FLAG_BIT (BGP_ATTR_AS_PATH
)))
225 snprintf (buf
+ strlen (buf
), size
- strlen (buf
), ", path %s",
226 aspath_print (attr
->aspath
));
228 if (strlen (buf
) > 1)
234 /* dump notify packet */
236 bgp_notify_print(struct peer
*peer
, struct bgp_notify
*bgp_notify
, char *direct
)
242 switch (bgp_notify
->code
)
244 case BGP_NOTIFY_HEADER_ERR
:
245 subcode_str
= LOOKUP (bgp_notify_head_msg
, bgp_notify
->subcode
);
247 case BGP_NOTIFY_OPEN_ERR
:
248 subcode_str
= LOOKUP (bgp_notify_open_msg
, bgp_notify
->subcode
);
250 case BGP_NOTIFY_UPDATE_ERR
:
251 subcode_str
= LOOKUP (bgp_notify_update_msg
, bgp_notify
->subcode
);
253 case BGP_NOTIFY_HOLD_ERR
:
256 case BGP_NOTIFY_FSM_ERR
:
259 case BGP_NOTIFY_CEASE
:
260 subcode_str
= LOOKUP (bgp_notify_cease_msg
, bgp_notify
->subcode
);
262 case BGP_NOTIFY_CAPABILITY_ERR
:
263 subcode_str
= LOOKUP (bgp_notify_capability_msg
, bgp_notify
->subcode
);
267 if (bgp_flag_check (peer
->bgp
, BGP_FLAG_LOG_NEIGHBOR_CHANGES
))
268 zlog_info ("%%NOTIFICATION: %s neighbor %s %d/%d (%s%s) %d bytes %s",
269 strcmp (direct
, "received") == 0 ? "received from" : "sent to",
270 peer
->host
, bgp_notify
->code
, bgp_notify
->subcode
,
271 LOOKUP (bgp_notify_msg
, bgp_notify
->code
),
272 subcode_str
, bgp_notify
->length
,
273 bgp_notify
->data
? bgp_notify
->data
: "");
274 else if (BGP_DEBUG (normal
, NORMAL
))
275 plog_info (peer
->log
, "%s %s NOTIFICATION %d/%d (%s%s) %d bytes %s",
276 peer
? peer
->host
: "",
277 direct
, bgp_notify
->code
, bgp_notify
->subcode
,
278 LOOKUP (bgp_notify_msg
, bgp_notify
->code
),
279 subcode_str
, bgp_notify
->length
,
280 bgp_notify
->data
? bgp_notify
->data
: "");
283 /* Debug option setting interface. */
284 unsigned long bgp_debug_option
= 0;
287 debug (unsigned int option
)
289 return bgp_debug_option
& option
;
292 DEFUN (debug_bgp_fsm
,
297 "BGP Finite State Machine\n")
299 if (vty
->node
== CONFIG_NODE
)
303 TERM_DEBUG_ON (fsm
, FSM
);
304 vty_out (vty
, "BGP fsm debugging is on%s", VTY_NEWLINE
);
309 DEFUN (no_debug_bgp_fsm
,
310 no_debug_bgp_fsm_cmd
,
315 "Finite State Machine\n")
317 if (vty
->node
== CONFIG_NODE
)
318 DEBUG_OFF (fsm
, FSM
);
321 TERM_DEBUG_OFF (fsm
, FSM
);
322 vty_out (vty
, "BGP fsm debugging is off%s", VTY_NEWLINE
);
327 ALIAS (no_debug_bgp_fsm
,
333 "Finite State Machine\n")
335 DEFUN (debug_bgp_events
,
336 debug_bgp_events_cmd
,
342 if (vty
->node
== CONFIG_NODE
)
343 DEBUG_ON (events
, EVENTS
);
346 TERM_DEBUG_ON (events
, EVENTS
);
347 vty_out (vty
, "BGP events debugging is on%s", VTY_NEWLINE
);
352 DEFUN (no_debug_bgp_events
,
353 no_debug_bgp_events_cmd
,
354 "no debug bgp events",
360 if (vty
->node
== CONFIG_NODE
)
361 DEBUG_OFF (events
, EVENTS
);
364 TERM_DEBUG_OFF (events
, EVENTS
);
365 vty_out (vty
, "BGP events debugging is off%s", VTY_NEWLINE
);
370 ALIAS (no_debug_bgp_events
,
371 undebug_bgp_events_cmd
,
372 "undebug bgp events",
377 DEFUN (debug_bgp_filter
,
378 debug_bgp_filter_cmd
,
384 if (vty
->node
== CONFIG_NODE
)
385 DEBUG_ON (filter
, FILTER
);
388 TERM_DEBUG_ON (filter
, FILTER
);
389 vty_out (vty
, "BGP filters debugging is on%s", VTY_NEWLINE
);
394 DEFUN (no_debug_bgp_filter
,
395 no_debug_bgp_filter_cmd
,
396 "no debug bgp filters",
402 if (vty
->node
== CONFIG_NODE
)
403 DEBUG_OFF (filter
, FILTER
);
406 TERM_DEBUG_OFF (filter
, FILTER
);
407 vty_out (vty
, "BGP filters debugging is off%s", VTY_NEWLINE
);
412 ALIAS (no_debug_bgp_filter
,
413 undebug_bgp_filter_cmd
,
414 "undebug bgp filters",
419 DEFUN (debug_bgp_keepalive
,
420 debug_bgp_keepalive_cmd
,
421 "debug bgp keepalives",
426 if (vty
->node
== CONFIG_NODE
)
427 DEBUG_ON (keepalive
, KEEPALIVE
);
430 TERM_DEBUG_ON (keepalive
, KEEPALIVE
);
431 vty_out (vty
, "BGP keepalives debugging is on%s", VTY_NEWLINE
);
436 DEFUN (no_debug_bgp_keepalive
,
437 no_debug_bgp_keepalive_cmd
,
438 "no debug bgp keepalives",
444 if (vty
->node
== CONFIG_NODE
)
445 DEBUG_OFF (keepalive
, KEEPALIVE
);
448 TERM_DEBUG_OFF (keepalive
, KEEPALIVE
);
449 vty_out (vty
, "BGP keepalives debugging is off%s", VTY_NEWLINE
);
454 ALIAS (no_debug_bgp_keepalive
,
455 undebug_bgp_keepalive_cmd
,
456 "undebug bgp keepalives",
461 DEFUN (debug_bgp_update
,
462 debug_bgp_update_cmd
,
468 if (vty
->node
== CONFIG_NODE
)
470 DEBUG_ON (update
, UPDATE_IN
);
471 DEBUG_ON (update
, UPDATE_OUT
);
475 TERM_DEBUG_ON (update
, UPDATE_IN
);
476 TERM_DEBUG_ON (update
, UPDATE_OUT
);
477 vty_out (vty
, "BGP updates debugging is on%s", VTY_NEWLINE
);
482 DEFUN (debug_bgp_update_direct
,
483 debug_bgp_update_direct_cmd
,
484 "debug bgp updates (in|out)",
489 "Outbound updates\n")
491 if (vty
->node
== CONFIG_NODE
)
493 if (strncmp ("i", argv
[0], 1) == 0)
495 DEBUG_OFF (update
, UPDATE_OUT
);
496 DEBUG_ON (update
, UPDATE_IN
);
500 DEBUG_OFF (update
, UPDATE_IN
);
501 DEBUG_ON (update
, UPDATE_OUT
);
506 if (strncmp ("i", argv
[0], 1) == 0)
508 TERM_DEBUG_OFF (update
, UPDATE_OUT
);
509 TERM_DEBUG_ON (update
, UPDATE_IN
);
510 vty_out (vty
, "BGP updates debugging is on (inbound)%s", VTY_NEWLINE
);
514 TERM_DEBUG_OFF (update
, UPDATE_IN
);
515 TERM_DEBUG_ON (update
, UPDATE_OUT
);
516 vty_out (vty
, "BGP updates debugging is on (outbound)%s", VTY_NEWLINE
);
522 DEFUN (no_debug_bgp_update
,
523 no_debug_bgp_update_cmd
,
524 "no debug bgp updates",
530 if (vty
->node
== CONFIG_NODE
)
532 DEBUG_OFF (update
, UPDATE_IN
);
533 DEBUG_OFF (update
, UPDATE_OUT
);
537 TERM_DEBUG_OFF (update
, UPDATE_IN
);
538 TERM_DEBUG_OFF (update
, UPDATE_OUT
);
539 vty_out (vty
, "BGP updates debugging is off%s", VTY_NEWLINE
);
544 ALIAS (no_debug_bgp_update
,
545 undebug_bgp_update_cmd
,
546 "undebug bgp updates",
551 DEFUN (debug_bgp_normal
,
552 debug_bgp_normal_cmd
,
557 if (vty
->node
== CONFIG_NODE
)
558 DEBUG_ON (normal
, NORMAL
);
561 TERM_DEBUG_ON (normal
, NORMAL
);
562 vty_out (vty
, "BGP debugging is on%s", VTY_NEWLINE
);
567 DEFUN (no_debug_bgp_normal
,
568 no_debug_bgp_normal_cmd
,
574 if (vty
->node
== CONFIG_NODE
)
575 DEBUG_OFF (normal
, NORMAL
);
578 TERM_DEBUG_OFF (normal
, NORMAL
);
579 vty_out (vty
, "BGP debugging is off%s", VTY_NEWLINE
);
584 ALIAS (no_debug_bgp_normal
,
585 undebug_bgp_normal_cmd
,
590 DEFUN (no_debug_bgp_all
,
591 no_debug_bgp_all_cmd
,
595 "Enable all debugging\n"
598 TERM_DEBUG_OFF (normal
, NORMAL
);
599 TERM_DEBUG_OFF (events
, EVENTS
);
600 TERM_DEBUG_OFF (keepalive
, KEEPALIVE
);
601 TERM_DEBUG_OFF (update
, UPDATE_IN
);
602 TERM_DEBUG_OFF (update
, UPDATE_OUT
);
603 TERM_DEBUG_OFF (fsm
, FSM
);
604 TERM_DEBUG_OFF (filter
, FILTER
);
605 vty_out (vty
, "All possible debugging has been turned off%s", VTY_NEWLINE
);
610 ALIAS (no_debug_bgp_all
,
614 "Enable all debugging\n"
617 DEFUN (show_debugging_bgp
,
618 show_debugging_bgp_cmd
,
619 "show debugging bgp",
624 vty_out (vty
, "BGP debugging status:%s", VTY_NEWLINE
);
626 if (BGP_DEBUG (normal
, NORMAL
))
627 vty_out (vty
, " BGP debugging is on%s", VTY_NEWLINE
);
628 if (BGP_DEBUG (events
, EVENTS
))
629 vty_out (vty
, " BGP events debugging is on%s", VTY_NEWLINE
);
630 if (BGP_DEBUG (keepalive
, KEEPALIVE
))
631 vty_out (vty
, " BGP keepalives debugging is on%s", VTY_NEWLINE
);
632 if (BGP_DEBUG (update
, UPDATE_IN
) && BGP_DEBUG (update
, UPDATE_OUT
))
633 vty_out (vty
, " BGP updates debugging is on%s", VTY_NEWLINE
);
634 else if (BGP_DEBUG (update
, UPDATE_IN
))
635 vty_out (vty
, " BGP updates debugging is on (inbound)%s", VTY_NEWLINE
);
636 else if (BGP_DEBUG (update
, UPDATE_OUT
))
637 vty_out (vty
, " BGP updates debugging is on (outbound)%s", VTY_NEWLINE
);
638 if (BGP_DEBUG (fsm
, FSM
))
639 vty_out (vty
, " BGP fsm debugging is on%s", VTY_NEWLINE
);
640 if (BGP_DEBUG (filter
, FILTER
))
641 vty_out (vty
, " BGP filter debugging is on%s", VTY_NEWLINE
);
642 vty_out (vty
, "%s", VTY_NEWLINE
);
647 bgp_config_write_debug (struct vty
*vty
)
651 if (CONF_BGP_DEBUG (normal
, NORMAL
))
653 vty_out (vty
, "debug bgp%s", VTY_NEWLINE
);
657 if (CONF_BGP_DEBUG (events
, EVENTS
))
659 vty_out (vty
, "debug bgp events%s", VTY_NEWLINE
);
663 if (CONF_BGP_DEBUG (keepalive
, KEEPALIVE
))
665 vty_out (vty
, "debug bgp keepalives%s", VTY_NEWLINE
);
669 if (CONF_BGP_DEBUG (update
, UPDATE_IN
) && CONF_BGP_DEBUG (update
, UPDATE_OUT
))
671 vty_out (vty
, "debug bgp updates%s", VTY_NEWLINE
);
674 else if (CONF_BGP_DEBUG (update
, UPDATE_IN
))
676 vty_out (vty
, "debug bgp updates in%s", VTY_NEWLINE
);
679 else if (CONF_BGP_DEBUG (update
, UPDATE_OUT
))
681 vty_out (vty
, "debug bgp updates out%s", VTY_NEWLINE
);
685 if (CONF_BGP_DEBUG (fsm
, FSM
))
687 vty_out (vty
, "debug bgp fsm%s", VTY_NEWLINE
);
691 if (CONF_BGP_DEBUG (filter
, FILTER
))
693 vty_out (vty
, "debug bgp filters%s", VTY_NEWLINE
);
700 struct cmd_node debug_node
=
710 install_node (&debug_node
, bgp_config_write_debug
);
712 install_element (ENABLE_NODE
, &show_debugging_bgp_cmd
);
714 install_element (ENABLE_NODE
, &debug_bgp_fsm_cmd
);
715 install_element (CONFIG_NODE
, &debug_bgp_fsm_cmd
);
716 install_element (ENABLE_NODE
, &debug_bgp_events_cmd
);
717 install_element (CONFIG_NODE
, &debug_bgp_events_cmd
);
718 install_element (ENABLE_NODE
, &debug_bgp_filter_cmd
);
719 install_element (CONFIG_NODE
, &debug_bgp_filter_cmd
);
720 install_element (ENABLE_NODE
, &debug_bgp_keepalive_cmd
);
721 install_element (CONFIG_NODE
, &debug_bgp_keepalive_cmd
);
722 install_element (ENABLE_NODE
, &debug_bgp_update_cmd
);
723 install_element (CONFIG_NODE
, &debug_bgp_update_cmd
);
724 install_element (ENABLE_NODE
, &debug_bgp_update_direct_cmd
);
725 install_element (CONFIG_NODE
, &debug_bgp_update_direct_cmd
);
726 install_element (ENABLE_NODE
, &debug_bgp_normal_cmd
);
727 install_element (CONFIG_NODE
, &debug_bgp_normal_cmd
);
729 install_element (ENABLE_NODE
, &no_debug_bgp_fsm_cmd
);
730 install_element (ENABLE_NODE
, &undebug_bgp_fsm_cmd
);
731 install_element (CONFIG_NODE
, &no_debug_bgp_fsm_cmd
);
732 install_element (ENABLE_NODE
, &no_debug_bgp_events_cmd
);
733 install_element (ENABLE_NODE
, &undebug_bgp_events_cmd
);
734 install_element (CONFIG_NODE
, &no_debug_bgp_events_cmd
);
735 install_element (ENABLE_NODE
, &no_debug_bgp_filter_cmd
);
736 install_element (ENABLE_NODE
, &undebug_bgp_filter_cmd
);
737 install_element (CONFIG_NODE
, &no_debug_bgp_filter_cmd
);
738 install_element (ENABLE_NODE
, &no_debug_bgp_keepalive_cmd
);
739 install_element (ENABLE_NODE
, &undebug_bgp_keepalive_cmd
);
740 install_element (CONFIG_NODE
, &no_debug_bgp_keepalive_cmd
);
741 install_element (ENABLE_NODE
, &no_debug_bgp_update_cmd
);
742 install_element (ENABLE_NODE
, &undebug_bgp_update_cmd
);
743 install_element (CONFIG_NODE
, &no_debug_bgp_update_cmd
);
744 install_element (ENABLE_NODE
, &no_debug_bgp_normal_cmd
);
745 install_element (ENABLE_NODE
, &undebug_bgp_normal_cmd
);
746 install_element (CONFIG_NODE
, &no_debug_bgp_normal_cmd
);
747 install_element (ENABLE_NODE
, &no_debug_bgp_all_cmd
);
748 install_element (ENABLE_NODE
, &undebug_bgp_all_cmd
);