summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorhasso <hasso>2005-04-09 13:27:50 +0000
committerhasso <hasso>2005-04-09 13:27:50 +0000
commit5bb4c1981a518315bf7f4fc81a85baf2061e32fa (patch)
tree21c20e1b3dbd312049f92147792421c16f96677c /lib
parenta8a80d532f3248567b6926b5dbd12509eadd6b43 (diff)
* routemap.c: Show description in "show route-map" output.
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog4
-rw-r--r--lib/routemap.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 13426eed..97b7fb22 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2005-04-09 Jeroen Simonetti <jeroens@office.netland.nl>
+
+ * routemap.c: Show description in "show route-map" output.
+
2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* sigevent.c: On GNU_LINUX, check whether __USE_GNU is already defined.
diff --git a/lib/routemap.c b/lib/routemap.c
index dfd41bc8..cd1abbc9 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -209,6 +209,11 @@ vty_show_route_map_entry (struct vty *vty, struct route_map *map)
vty_out (vty, "route-map %s, %s, sequence %d%s",
map->name, route_map_type_str (index->type),
index->pref, VTY_NEWLINE);
+
+ /* Description */
+ if (index->description)
+ vty_out (vty, " Description:%s %s%s", VTY_NEWLINE,
+ index->description, VTY_NEWLINE);
/* Match clauses */
vty_out (vty, " Match clauses:%s", VTY_NEWLINE);