diff options
author | Julian Klaiber <julian@klaiber.me> | 2022-10-18 10:37:14 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@0xa5.net> | 2022-11-02 14:31:46 +0000 |
commit | 39d6deca5f71ee4fe772c10d76ed5b65d1ebec44 (patch) | |
tree | faad53b54d4942e2a56004f8cd1c9db5e05e9d1d /src/vnet/srv6/sr_pt.c | |
parent | de0c1af4478d64af92c5d1ac749fa67cc19ec0dd (diff) |
sr: SRv6 Path Tracing Midpoint behaviour
Type: feature
Signed-off-by: Julian Klaiber <julian@klaiber.me>
Change-Id: I866a2d2e06013380309c98a54078c1b3f6ad76fc
Diffstat (limited to 'src/vnet/srv6/sr_pt.c')
-rw-r--r-- | src/vnet/srv6/sr_pt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/srv6/sr_pt.c b/src/vnet/srv6/sr_pt.c index 5d907eaf639..6299faa84ab 100644 --- a/src/vnet/srv6/sr_pt.c +++ b/src/vnet/srv6/sr_pt.c @@ -69,6 +69,8 @@ sr_pt_add_iface (u32 iface, u16 id, u8 ingress_load, u8 egress_load, if (tts_template > SR_PT_TTS_TEMPLATE_MAX) return SR_PT_ERR_TTS_TEMPLATE_INVALID; + vnet_feature_enable_disable ("ip6-output", "pt", iface, 1, 0, 0); + /* Create a new sr_pt_iface */ pool_get_zero (sr_pt->sr_pt_iface, ls); ls->iface = iface; @@ -101,6 +103,7 @@ sr_pt_del_iface (u32 iface) { /* Retrieve sr_pt_iface */ ls = pool_elt_at_index (sr_pt->sr_pt_iface, p[0]); + vnet_feature_enable_disable ("ip6-output", "pt", iface, 0, 0, 0); /* Delete sr_pt_iface */ pool_put (sr_pt->sr_pt_iface, ls); mhash_unset (&sr_pt->sr_pt_iface_index_hash, &iface, NULL); |