wireguard: fix wg-output-tun feature configuration 93/33793/2
authorAloys Augustin <aloaugus@cisco.com>
Wed, 22 Sep 2021 15:17:28 +0000 (17:17 +0200)
committerDamjan Marion <dmarion@me.com>
Thu, 23 Sep 2021 12:16:03 +0000 (12:16 +0000)
The removed code caused the feature to be wrongly removed on the wg
interface.

Type: fix
Signed-off-by: Aloys Augustin <aloaugus@cisco.com>
Change-Id: I998e01ec231527128eaeae78bcc7576ac00e5b12

src/plugins/wireguard/wireguard_peer.c

index f47019b..0c93a25 100644 (file)
@@ -347,9 +347,6 @@ wg_peer_remove (index_t peeri)
   wgi = wg_if_get (wg_if_find_by_sw_if_index (peer->wg_sw_if_index));
   wg_if_peer_remove (wgi, peeri);
 
-  vnet_feature_enable_disable ("ip4-output", "wg-output-tun",
-                              peer->wg_sw_if_index, 0, 0, 0);
-
   noise_remote_clear (wmp->vlib_main, &peer->remote);
   wg_peer_clear (wmp->vlib_main, peer);
   pool_put (wg_peer_pool, peer);