Merge pull request #17414 from dmytroshytyi-6WIND/srv6_isisd_fix_display_algorithm

isisd: properly display srv6 algorithm
This commit is contained in:
Donald Sharp 2024-11-19 09:30:36 -05:00 committed by GitHub
commit a959c3fe9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7993,7 +7993,7 @@ struct isis_router_cap *isis_tlvs_init_router_capability(struct isis_tlvs *tlvs)
tlvs->router_cap = XCALLOC(MTYPE_ISIS_TLV, sizeof(*tlvs->router_cap));
/* init SR algo list content to the default value */
for (int i = 0; i < SR_ALGORITHM_COUNT; i++)
for (int i = 1; i < SR_ALGORITHM_COUNT; i++)
tlvs->router_cap->algo[i] = SR_ALGORITHM_UNSET;
return tlvs->router_cap;