GBP: use sclass in the DP for policy
[vpp.git] / src / plugins / gbp / gbp_route_domain.c
index 6a3f4fa..67b6915 100644 (file)
@@ -15,7 +15,6 @@
 
 #include <plugins/gbp/gbp_route_domain.h>
 #include <plugins/gbp/gbp_endpoint.h>
-#include <plugins/gbp/gbp_sclass.h>
 
 #include <vnet/dpo/dvr_dpo.h>
 #include <vnet/fib/fib_table.h>
@@ -183,8 +182,6 @@ gbp_route_domain_add_and_lock (u32 rd_id,
                                             &ADJ_BCAST_ADDR,
                                             grd->grd_uu_sw_if_index[fproto],
                                             rewrite);
-
-           gbp_sclass_enable_ip (grd->grd_uu_sw_if_index[fproto]);
          }
        else
          {
@@ -226,8 +223,6 @@ gbp_route_domain_unlock (index_t index)
                          fproto, FIB_SOURCE_PLUGIN_HI);
        if (INDEX_INVALID != grd->grd_adj[fproto])
          adj_unlock (grd->grd_adj[fproto]);
-       if (~0 != grd->grd_uu_sw_if_index[fproto])
-         gbp_sclass_disable_ip (grd->grd_uu_sw_if_index[fproto]);
       }
 
       gbp_route_domain_db_remove (grd);