diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2024-10-25 10:23:54 +0200 | 
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-10-30 08:44:08 +0000 | 
| commit | 6b1cf330c4b0252ef41f26527b634aa3432a058e (patch) | |
| tree | d558bf771279f4dd70104fbd5fa1dda144fa9181 /isisd/isis_cli.c | |
| parent | 7dddef2a49749d38dd712564ab15cfa05d6fcc6a (diff) | |
isisd: fix change flex-algorithm number from uint32 to uint8
The algorithm number is encoded on 8 bits and does not require
an unsigned 32 bit value to store the value.
Fixes: cc4926c1284e ("isisd,yang: add algorithm-prefix-sid configuration tree")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
(cherry picked from commit 8e861a75e8b426f0944157387699fe1ab322fe8e)
Diffstat (limited to 'isisd/isis_cli.c')
| -rw-r--r-- | isisd/isis_cli.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_cli.c b/isisd/isis_cli.c index e6cc794bae..93f7bbf753 100644 --- a/isisd/isis_cli.c +++ b/isisd/isis_cli.c @@ -2015,12 +2015,12 @@ void cli_show_isis_prefix_sid_algorithm(struct vty *vty,  	const char *sid_value_type;  	const char *sid_value;  	bool n_flag_clear; -	uint32_t algorithm; +	uint8_t algorithm;  	prefix = yang_dnode_get_string(dnode, "prefix");  	sid_value_type = yang_dnode_get_string(dnode, "sid-value-type");  	sid_value = yang_dnode_get_string(dnode, "sid-value"); -	algorithm = yang_dnode_get_uint32(dnode, "algo"); +	algorithm = yang_dnode_get_uint8(dnode, "algo");  	lh_behavior = yang_dnode_get_string(dnode, "last-hop-behavior");  	n_flag_clear = yang_dnode_get_bool(dnode, "n-flag-clear");  | 
