summaryrefslogtreecommitdiff
path: root/lib/plist.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plist.c')
-rw-r--r--lib/plist.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/plist.c b/lib/plist.c
index 97d254f4..83c5aa0c 100644
--- a/lib/plist.c
+++ b/lib/plist.c
@@ -28,6 +28,7 @@
#include "sockunion.h"
#include "buffer.h"
#include "stream.h"
+#include "log.h"
/* Each prefix-list's entry. */
struct prefix_list_entry
@@ -918,6 +919,10 @@ vty_show_prefix_entry (struct vty *vty, afi_t afi, struct prefix_list *plist,
{
struct prefix_list_entry *pentry;
+ /* Print the name of the protocol */
+ if (zlog_default)
+ vty_out (vty, "%s: ", zlog_proto_names[zlog_default->protocol]);
+
if (dtype == normal_display)
{
vty_out (vty, "ip%s prefix-list %s: %d entries%s",