From 73ffb25bec41d729b0dac34d17b6ccd4aa25803b Mon Sep 17 00:00:00 2001 From: paul Date: Sat, 19 Apr 2003 15:49:49 +0000 Subject: Hasso Tepper http://hasso.linux.ee/zebra/ht-routemap-18042003_5.patch Trivial fixes to sync daemon's route-map commands to have same syntax. Fixes a lot of errors with "match ..." and "set ..." commands when using vtysh. --- ripd/rip_routemap.c | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'ripd') diff --git a/ripd/rip_routemap.c b/ripd/rip_routemap.c index 791de412..8262f508 100644 --- a/ripd/rip_routemap.c +++ b/ripd/rip_routemap.c @@ -628,11 +628,13 @@ ALIAS (no_match_interface, DEFUN (match_ip_next_hop, match_ip_next_hop_cmd, - "match ip next-hop WORD", + "match ip next-hop (<1-199>|<1300-2699>|WORD)", MATCH_STR IP_STR "Match next-hop address of route\n" - "IP access-list name\n") + "IP access-list number\n" + "IP access-list number (expanded range)\n" + "IP Access-list name\n") { return rip_route_match_add (vty, vty->index, "ip next-hop", argv[0]); } @@ -653,12 +655,14 @@ DEFUN (no_match_ip_next_hop, ALIAS (no_match_ip_next_hop, no_match_ip_next_hop_val_cmd, - "no match ip next-hop WORD", + "no match ip next-hop (<1-199>|<1300-2699>|WORD)", NO_STR MATCH_STR IP_STR "Match next-hop address of route\n" - "IP access-list name\n") + "IP access-list number\n" + "IP access-list number (expanded range)\n" + "IP Access-list name\n") DEFUN (match_ip_next_hop_prefix_list, match_ip_next_hop_prefix_list_cmd, @@ -697,13 +701,16 @@ ALIAS (no_match_ip_next_hop_prefix_list, "Match entries of prefix-lists\n" "IP prefix-list name\n") -DEFUN (match_ip_address, +DEFUN (match_ip_address, match_ip_address_cmd, - "match ip address WORD", + "match ip address (<1-199>|<1300-2699>|WORD)", MATCH_STR IP_STR "Match address of route\n" - "IP access-list name\n") + "IP access-list number\n" + "IP access-list number (expanded range)\n" + "IP Access-list name\n") + { return rip_route_match_add (vty, vty->index, "ip address", argv[0]); } @@ -722,14 +729,16 @@ DEFUN (no_match_ip_address, return rip_route_match_delete (vty, vty->index, "ip address", argv[0]); } -ALIAS (no_match_ip_address, +ALIAS (no_match_ip_address, no_match_ip_address_val_cmd, - "no match ip address WORD", + "no match ip address (<1-199>|<1300-2699>|WORD)", NO_STR MATCH_STR IP_STR "Match address of route\n" - "IP access-list name\n") + "IP access-list number\n" + "IP access-list number (expanded range)\n" + "IP Access-list name\n") DEFUN (match_ip_address_prefix_list, match_ip_address_prefix_list_cmd, -- cgit v1.2.1