diff options
| author | David Stevens <dlstevens@us.ibm.com> | 2007-04-09 18:36:39 -0500 |
|---|---|---|
| committer | Jeffrey C. Ollie <jeff@ocjtech.us> | 2007-04-09 18:36:39 -0500 |
| commit | 2a77721a1fe3e256a11d0d8c6a152cb114ba6baf (patch) | |
| tree | efb6d8311d76b82fc1f52661daca94bf5dbc7aea /lib/routemap.c | |
| parent | c15deb1b7428a2baedfb615b1a41fe28d48c598c (diff) | |
| download | quagga-zrm.patch.tar.bz2 quagga-zrm.patch.tar.xz | |
route-map, prefix list, and source setting support for zebrazrm.patch
The following patch:
1) adds "route-map" support to zebra
2) fixes "show route-map" (with no name arg)
3) adds "prefix-list" support zebra
4) adds a "set src" route-map command to allow specifying
a source address for matched routes
5) adds "ip protocol" command to zebra to execute route-maps
by protocol (or "any")
6) supports "interface", "nexthop" and "ip address" matching for
zebra route-map's
Diffstat (limited to 'lib/routemap.c')
| -rw-r--r-- | lib/routemap.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/lib/routemap.c b/lib/routemap.c index 55cc33c7..f379a4c7 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -268,6 +268,11 @@ vty_show_route_map (struct vty *vty, const char *name) return CMD_WARNING; } } + else + { + for (map = route_map_master.head; map; map = map->next) + vty_show_route_map_entry (vty, map); + } return CMD_SUCCESS; } @@ -1135,23 +1140,17 @@ ALIAS (no_rmap_onmatch_goto, "Continue on a different entry within the route-map\n" "Route-map entry sequence number\n") -DEFUN (rmap_show, - rmap_show_cmd, - "show route-map", - SHOW_STR - "route-map information\n") -{ - return vty_show_route_map (vty, NULL); -} - DEFUN (rmap_show_name, rmap_show_name_cmd, - "show route-map WORD", + "show route-map [WORD]", SHOW_STR "route-map information\n" "route-map name\n") { - return vty_show_route_map (vty, argv[0]); + char *name = NULL; + if (argc) + name = argv[0]; + return vty_show_route_map (vty, name); } ALIAS (rmap_onmatch_goto, @@ -1322,6 +1321,5 @@ route_map_init_vty (void) install_element (RMAP_NODE, &no_rmap_description_cmd); /* Install show command */ - install_element (ENABLE_NODE, &rmap_show_cmd); install_element (ENABLE_NODE, &rmap_show_name_cmd); } |
