]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: fix wrong check of mpls command
authoranlan_cs <anlan_cs@tom.com>
Wed, 18 Aug 2021 05:58:54 +0000 (01:58 -0400)
committeranlan_cs <anlan_cs@tom.com>
Wed, 18 Aug 2021 23:34:03 +0000 (19:34 -0400)
commit21683186a0ae2eb06f18129fe6557c3ace1e38c7
tree360d4ca41d0d3d2e6d8c3a6c767005ccadaa178e
parent0512687b30b97f2fed4a6aa0200e2addb1a4b7a0
zebra: fix wrong check of mpls command

Maybe with empty nexthop to call zebra_mpls_transit_lsp():
"no mpls lsp (16-1048575)".

So just remove this "gate_str" check. If without "gate" in command, "gtype" is
set to NEXTHOP_TYPE_BLACKHOLE for subsequent processing.

Signed-off-by: anlan_cs <anlan_cs@tom.com>
zebra/zebra_mpls_vty.c