add mactime plugin unit / code coverage tests
[vpp.git] / src / plugins / mactime / mactime.c
index 6cbddbc..1b053fa 100644 (file)
@@ -126,6 +126,8 @@ mactime_enable_disable_command_fn (vlib_main_t * vm,
       else if (unformat (input, "%U", unformat_vnet_sw_interface,
                         mm->vnet_main, &sw_if_index))
        ;
+      else if (unformat (input, "sw_if_index %d", &sw_if_index))
+       ;
       else
        break;
     }
@@ -145,11 +147,6 @@ mactime_enable_disable_command_fn (vlib_main_t * vm,
        (0, "Invalid interface, only works on physical ports");
       break;
 
-    case VNET_API_ERROR_UNIMPLEMENTED:
-      return clib_error_return (0,
-                               "Device driver doesn't support redirection");
-      break;
-
     default:
       return clib_error_return (0, "mactime_enable_disable returned %d", rv);
     }