summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-01-19 03:21:53 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2024-01-19 03:47:25 +0200
commit01be34fa3429e97fdcaf8299b74dc18ddb1c9629 (patch)
tree0fa8b217e7e3e1486479308182642a186d5b897e /lib/if.c
parent733462a991ffa70a4b4bf04282833956a8925b43 (diff)
zebra: fix default value for affinity-mode
- initialize the necessary bit when creating if_link_params - fix CLI description to mark extended as the default mode - correctly set mode to extended when using the "no" form of the command - handle the "show_defaults" parameter correctly in cli_show callback Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/if.c b/lib/if.c
index 1328e21874..1a8195de67 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -1135,7 +1135,7 @@ struct if_link_params *if_link_params_enable(struct interface *ifp)
iflp->unrsv_bw[i] = iflp->default_bw;
/* Update Link parameters status */
- iflp->lp_status = LP_MAX_BW | LP_MAX_RSV_BW | LP_UNRSV_BW;
+ iflp->lp_status = LP_MAX_BW | LP_MAX_RSV_BW | LP_UNRSV_BW | LP_EXTEND_ADM_GRP;
/* Set TE metric equal to standard metric only if it is set */
if (ifp->metric != 0) {