summaryrefslogtreecommitdiffstats
path: root/lib/if_rmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/if_rmap.c')
-rw-r--r--lib/if_rmap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/if_rmap.c b/lib/if_rmap.c
index d3031fad..42271025 100644
--- a/lib/if_rmap.c
+++ b/lib/if_rmap.c
@@ -299,7 +299,8 @@ void
if_rmap_init (int node)
{
ifrmaphash = hash_create (if_rmap_hash_make, if_rmap_hash_cmp);
-
- install_element (node, &if_rmap_cmd);
- install_element (node, &no_if_rmap_cmd);
+ if (node == RIPNG_NODE) {
+ install_element (RIPNG_NODE, &if_rmap_cmd);
+ install_element (RIPNG_NODE, &no_if_rmap_cmd);
+ }
}