- struct if_rmap *if_rmap;
-
- if_rmap = if_rmap_lookup (ifname);
- if (!if_rmap)
- return 0;
-
- if (type == IF_RMAP_IN)
- {
- if (!if_rmap->routemap[IF_RMAP_IN])
- return 0;
- if (strcmp (if_rmap->routemap[IF_RMAP_IN], routemap_name) != 0)
- return 0;
-
- XFREE (MTYPE_IF_RMAP_NAME, if_rmap->routemap[IF_RMAP_IN]);
- if_rmap->routemap[IF_RMAP_IN] = NULL;
- }
-
- if (type == IF_RMAP_OUT)
- {
- if (!if_rmap->routemap[IF_RMAP_OUT])
- return 0;
- if (strcmp (if_rmap->routemap[IF_RMAP_OUT], routemap_name) != 0)
- return 0;
-
- XFREE (MTYPE_IF_RMAP_NAME, if_rmap->routemap[IF_RMAP_OUT]);
- if_rmap->routemap[IF_RMAP_OUT] = NULL;
- }
-
- if (if_rmap_delete_hook)
- (*if_rmap_delete_hook) (if_rmap);
-
- if (if_rmap->routemap[IF_RMAP_IN] == NULL &&
- if_rmap->routemap[IF_RMAP_OUT] == NULL)
- {
- hash_release (ifrmaphash, if_rmap);
- if_rmap_free (if_rmap);
- }
-
- return 1;
+ struct if_rmap *if_rmap;
+
+ if_rmap = if_rmap_lookup(ifname);
+ if (!if_rmap)
+ return 0;
+
+ if (type == IF_RMAP_IN) {
+ if (!if_rmap->routemap[IF_RMAP_IN])
+ return 0;
+ if (strcmp(if_rmap->routemap[IF_RMAP_IN], routemap_name) != 0)
+ return 0;
+
+ XFREE(MTYPE_IF_RMAP_NAME, if_rmap->routemap[IF_RMAP_IN]);
+ if_rmap->routemap[IF_RMAP_IN] = NULL;
+ }
+
+ if (type == IF_RMAP_OUT) {
+ if (!if_rmap->routemap[IF_RMAP_OUT])
+ return 0;
+ if (strcmp(if_rmap->routemap[IF_RMAP_OUT], routemap_name) != 0)
+ return 0;
+
+ XFREE(MTYPE_IF_RMAP_NAME, if_rmap->routemap[IF_RMAP_OUT]);
+ if_rmap->routemap[IF_RMAP_OUT] = NULL;
+ }
+
+ if (if_rmap_delete_hook)
+ (*if_rmap_delete_hook)(if_rmap);
+
+ if (if_rmap->routemap[IF_RMAP_IN] == NULL
+ && if_rmap->routemap[IF_RMAP_OUT] == NULL) {
+ hash_release(ifrmaphash, if_rmap);
+ if_rmap_free(if_rmap);
+ }
+
+ return 1;