summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpaul <paul>2005-11-12 22:36:41 +0000
committerpaul <paul>2005-11-12 22:36:41 +0000
commitdb29ae5fcaee1d2de371415e351afe6c3df19874 (patch)
tree616eb06aa27c650c064d07d84dbebb95485ec258 /lib
parent58e1befe5fbd6eade52a1536acb49ea4b4fc5837 (diff)
[lib] 'show route-map' should print call action seperate from exit policy
2005-11-12 Paul Jakma <paul.jakma@sun.com> * routemap.c: (vty_show_route_map_entry) call action is seperate from exit action, latter should still be printed regardless of whether a call is specified.
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog6
-rw-r--r--lib/routemap.c17
2 files changed, 13 insertions, 10 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index c0c84167..106de477 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-12 Paul Jakma <paul.jakma@sun.com>
+
+ * routemap.c: (vty_show_route_map_entry) call action is
+ seperate from exit action, latter should still be printed
+ regardless of whether a call is specified.
+
2005-11-03 Paul Jakma <paul.jakma@sun.com>
* zebra.h: BSD BYTE_ORDER define isn't available everywhere,
diff --git a/lib/routemap.c b/lib/routemap.c
index 85491ead..55cc33c7 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -232,20 +232,17 @@ vty_show_route_map_entry (struct vty *vty, struct route_map *map)
vty_out (vty, " %s %s%s",
rule->cmd->str, rule->rule_str, VTY_NEWLINE);
- vty_out (vty, " Action:%s", VTY_NEWLINE);
-
+ /* Call clause */
+ vty_out (vty, " Call clause:%s", VTY_NEWLINE);
if (index->nextrm)
vty_out (vty, " Call %s%s", index->nextrm, VTY_NEWLINE);
- else if (index->exitpolicy == RMAP_GOTO)
+
+ /* Exit Policy */
+ vty_out (vty, " Action:%s", VTY_NEWLINE);
+ if (index->exitpolicy == RMAP_GOTO)
vty_out (vty, " Goto %d%s", index->nextpref, VTY_NEWLINE);
else if (index->exitpolicy == RMAP_NEXT)
- {
- vty_out (vty, " Goto next, (entry ");
- if (index->next)
- vty_out (vty, " %d)%s", index->next->pref, VTY_NEWLINE);
- else
- vty_out (vty, " undefined)%s", VTY_NEWLINE);
- }
+ vty_out (vty, " Continue to next entry%s", VTY_NEWLINE);
else if (index->exitpolicy == RMAP_EXIT)
vty_out (vty, " Exit routemap%s", VTY_NEWLINE);
}