]> git.proxmox.com Git - mirror_frr.git/commit
zebra: accept LSP entries with an mpls-less outgoing interface
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 12 Jan 2023 07:33:50 +0000 (08:33 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 22 Mar 2023 11:06:29 +0000 (12:06 +0100)
commitde59c09a0d1b2e9dd09814b934635db86fc83105
treee39d2d3da5e6ab1ca763259cfd6fb8de81a59688
parent51655ef01a89f4e31c1ffe89f702ba975c106465
zebra: accept LSP entries with an mpls-less outgoing interface

The ZEBRA_MPLS_LABELS_[ADD/DELETE/REPLACE] messages may change an
LSP entry based on an incoming MPLS entry, followed by a given
next-hop.
Having a next hop with no label information inside is rejected
by the zebra layer. As illustration, the following ZAPI message
would be rejected, because the next hop does not contain any
label information.

  > ip -f mpls route add 105 via inet 192.0.2.45

At the same time, such configuration is desirable to be
supported:

An attempt has been done to configure the next-hop with an implicit-
null label. But the message is rejected by the kernel:

  > ip -f mpls route add 104 as 3 via inet 192.0.2.45
  > Error: Implicit NULL Label (3) can not be used in encapsulation.

The commit proposes to accept ZEBRA_MPLS_LABELS_[XX] messages with
a nexthop that does not contain any label information.

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