index = vty->index;
if (index)
- index->exitpolicy = RMAP_NEXT;
-
+ {
+ if (index->type == RMAP_DENY)
+ {
+ /* Under a deny clause, match means it's finished. No need to set next */
+ vty_out (vty, "on-match next not supported under route-map deny%s",
+ VTY_NEWLINE);
+ return CMD_WARNING;
+ }
+ index->exitpolicy = RMAP_NEXT;
+ }
return CMD_SUCCESS;
}
if (index)
{
+ if (index->type == RMAP_DENY)
+ {
+ /* Under a deny clause, match means it's finished. No need to go anywhere */
+ vty_out (vty, "on-match goto not supported under route-map deny%s",
+ VTY_NEWLINE);
+ return CMD_WARNING;
+ }
+
if (argc == 1 && argv[0])
VTY_GET_INTEGER_RANGE("route-map index", d, argv[0], 1, 65536);
else