summaryrefslogtreecommitdiffstats
path: root/lib/if_rmap.c
diff options
context:
space:
mode:
authorhasso <hasso>2003-05-25 17:13:49 +0200
committerhasso <hasso>2003-05-25 17:13:49 +0200
commit4f84947985d5a8f43f6f694055333af1e897de0e (patch)
treea27dd6e338687e6da837d8a7ac27f46ee0c35bcc /lib/if_rmap.c
parentMerge RIP part of 6Wind patch. (diff)
downloadfrr-4f84947985d5a8f43f6f694055333af1e897de0e.tar.xz
frr-4f84947985d5a8f43f6f694055333af1e897de0e.zip
RIP has now "route-map x [in|out] <interface>" as well.
Diffstat (limited to 'lib/if_rmap.c')
-rw-r--r--lib/if_rmap.c30
1 files changed, 26 insertions, 4 deletions
diff --git a/lib/if_rmap.c b/lib/if_rmap.c
index 42271025f..4cf8ad9a5 100644
--- a/lib/if_rmap.c
+++ b/lib/if_rmap.c
@@ -219,7 +219,16 @@ DEFUN (if_rmap,
if_rmap = if_rmap_set (argv[2], type, argv[0]);
return CMD_SUCCESS;
-}
+}
+
+ALIAS (if_rmap,
+ if_ipv6_rmap_cmd,
+ "route-map RMAP_NAME (in|out) IFNAME",
+ "Route map set\n"
+ "Route map name\n"
+ "Route map set for input filtering\n"
+ "Route map set for output filtering\n"
+ "Route map interface name\n")
DEFUN (no_if_rmap,
no_if_rmap_cmd,
@@ -251,7 +260,17 @@ DEFUN (no_if_rmap,
return CMD_WARNING;
}
return CMD_SUCCESS;
-}
+}
+
+ALIAS (no_if_rmap,
+ no_if_ipv6_rmap_cmd,
+ "no route-map ROUTEMAP_NAME (in|out) IFNAME",
+ NO_STR
+ "Route map unset\n"
+ "Route map name\n"
+ "Route map for input filtering\n"
+ "Route map for output filtering\n"
+ "Route map interface name\n")
/* Configuration write function. */
int
@@ -300,7 +319,10 @@ if_rmap_init (int node)
{
ifrmaphash = hash_create (if_rmap_hash_make, if_rmap_hash_cmp);
if (node == RIPNG_NODE) {
- install_element (RIPNG_NODE, &if_rmap_cmd);
- install_element (RIPNG_NODE, &no_if_rmap_cmd);
+ install_element (RIPNG_NODE, &if_ipv6_rmap_cmd);
+ install_element (RIPNG_NODE, &no_if_ipv6_rmap_cmd);
+ } else if (node == RIP_NODE) {
+ install_element (RIP_NODE, &if_rmap_cmd);
+ install_element (RIP_NODE, &no_if_rmap_cmd);
}
}