From: radhika Date: Thu, 22 Oct 2015 17:14:00 +0000 (-0700) Subject: Addition of missing zebra command descriptions X-Git-Tag: frr-2.0-rc1~1215^2~1^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a7f6b2e2195aaafa9911c895c43b2329cf8c5526;p=matthieu%2Ffrr.git Addition of missing zebra command descriptions Ticket: CM-7456 Reviewed By: CCR-3528 Testing Done: Unit Porting of the patch zebra-fix-cmd-type-desc-log.patch from 2.5 branch Last few Zebra message command types defined were not added to the command type description table used for getting logging strings. This was causing the logs to display "unknown command type" instead of the actual command type. So, added all the missing zebra commands to the command type description table. Also, changed the order of the description table to match with the actual command type definition order. --- diff --git a/lib/log.c b/lib/log.c index 936c34657e..449f68006e 100644 --- a/lib/log.c +++ b/lib/log.c @@ -861,13 +861,21 @@ static const struct zebra_desc_table command_types[] = { DESC_ENTRY (ZEBRA_NEXTHOP_REGISTER), DESC_ENTRY (ZEBRA_NEXTHOP_UNREGISTER), DESC_ENTRY (ZEBRA_NEXTHOP_UPDATE), - DESC_ENTRY (ZEBRA_INTERFACE_NBR_ADDRESS_ADD), - DESC_ENTRY (ZEBRA_INTERFACE_NBR_ADDRESS_DELETE), + DESC_ENTRY (ZEBRA_INTERFACE_NBR_ADDRESS_ADD), + DESC_ENTRY (ZEBRA_INTERFACE_NBR_ADDRESS_DELETE), + DESC_ENTRY (ZEBRA_INTERFACE_BFD_DEST_UPDATE), + DESC_ENTRY (ZEBRA_IMPORT_ROUTE_REGISTER), + DESC_ENTRY (ZEBRA_IMPORT_ROUTE_UNREGISTER), DESC_ENTRY (ZEBRA_IMPORT_CHECK_UPDATE), - DESC_ENTRY (ZEBRA_INTERFACE_BFD_DEST_UPDATE), - DESC_ENTRY (ZEBRA_BFD_DEST_REGISTER), - DESC_ENTRY (ZEBRA_BFD_DEST_DEREGISTER), - DESC_ENTRY (ZEBRA_BFD_DEST_UPDATE), + DESC_ENTRY (ZEBRA_IPV4_ROUTE_IPV6_NEXTHOP_ADD), + DESC_ENTRY (ZEBRA_BFD_DEST_REGISTER), + DESC_ENTRY (ZEBRA_BFD_DEST_DEREGISTER), + DESC_ENTRY (ZEBRA_BFD_DEST_UPDATE), + DESC_ENTRY (ZEBRA_BFD_DEST_REPLAY), + DESC_ENTRY (ZEBRA_REDISTRIBUTE_IPV4_ADD), + DESC_ENTRY (ZEBRA_REDISTRIBUTE_IPV4_DEL), + DESC_ENTRY (ZEBRA_REDISTRIBUTE_IPV6_ADD), + DESC_ENTRY (ZEBRA_REDISTRIBUTE_IPV6_DEL) }; #undef DESC_ENTRY