]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: fix prefix-sid last-hop-behavior 11653/head
authorLouis Scalbert <louis.scalbert@6wind.com>
Wed, 20 Jul 2022 17:25:52 +0000 (19:25 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Wed, 20 Jul 2022 17:25:52 +0000 (19:25 +0200)
The php value is defined in yang but not properly set.

Fixes: 8f6c893629 ("isisd: add segment-routing CLI commands")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
isisd/isis_cli.c

index bbc569ec1ce9b40bb159252de8cbda15fedb4b04..a673cb8c1ed4e4691feca3c2514f20a809b80055 100644 (file)
@@ -1629,8 +1629,10 @@ DEFPY_YANG (isis_sr_prefix_sid,
 
                if (strmatch(lh_behavior, "no-php-flag"))
                        value = "no-php";
-               else
+               else if (strmatch(lh_behavior, "explicit-null"))
                        value = "explicit-null";
+               else
+                       value = "php";
 
                nb_cli_enqueue_change(vty, "./last-hop-behavior", NB_OP_MODIFY,
                                      value);