]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Use `mpls enable`, not `mpls` when generating a config 12411/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 28 Nov 2022 09:14:06 +0000 (11:14 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Mon, 28 Nov 2022 12:48:59 +0000 (12:48 +0000)
If we enable MPLS for an interface via sysctl, we should write `mpls enable`,
not `mpls`.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit 35c46a8718948850f67ec6c3ec00551b2b839310)

zebra/interface.c

index c674b499ac82ad6ec4e30506300262ab653630ec..27ac4232dceab865495ef244e0e0709d827db875 100644 (file)
@@ -4602,7 +4602,7 @@ static int if_config_write(struct vty *vty)
                                                        ? ""
                                                        : "no ");
                                if (if_data->mpls == IF_ZEBRA_DATA_ON)
-                                       vty_out(vty, " mpls\n");
+                                       vty_out(vty, " mpls enable\n");
                        }
 
                        hook_call(zebra_if_config_wr, vty, ifp);