]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fix mpls config on ifaces created post frr 13964/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Sun, 9 Jul 2023 19:45:51 +0000 (21:45 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Sun, 9 Jul 2023 19:57:01 +0000 (21:57 +0200)
commit71b0b0d3b330073b3d0957efca76a6a6d68002f0
treec44e3e61d0d84eb88ae7f56115d2f5523eef44ab
parent2ec7477a2681d36867b0970517c2f27f14a5af86
zebra: fix mpls config on ifaces created post frr

The mpls configuration does not work when an interface is
created after having applied the frr configuration. The
below scenario illustrates:

> root@dut:~# modprobe mpls
> root@dut:~# zebra &
> [..]
> dut(config)# interface ifacenotcreated
> dut(config-if)# mpls enable
> dut(config-if)# Ctrl-D
> root@dut:~# ip li show ifacenotcreated
> Device "ifacenotcreated" does not exist.
> root@dut:~# ip li add ifacenotcreated type dummy
> 0

Fix this by forcing the mpls flag when the interface is detected.

> root@dut:~# cat /proc/sys/net/mpls/conf/ifacenotcreat/input
> 1

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/interface.c