VPP-30 sr_replicate requires DPDK
[vpp.git] / vpp / api / api.c
index 41f5760..52616cc 100644 (file)
@@ -3506,7 +3506,12 @@ static void vl_api_sr_multicast_map_add_del_t_handler
        goto out;
       }
 
+#if DPDK > 0 /* Cannot call replicate without DPDK */
     rv = ip6_sr_add_del_multicastmap (a);
+#else
+    clib_warning ("multicast replication without DPDK not implemented");
+    rv = VNET_API_ERROR_UNIMPLEMENTED;
+#endif /* DPDK */
 
 out: