diff options
| author | anlan_cs <anlan_cs@tom.com> | 2024-04-05 15:03:15 +0800 |
|---|---|---|
| committer | anlan_cs <anlan_cs@tom.com> | 2024-04-06 09:01:39 +0800 |
| commit | cbd1f3239a9f44fcbc2dc7d41eee82e623de141f (patch) | |
| tree | 71a74f8b527ad876778e2948ddcf03c8fd25e886 /lib/pid_output.c | |
| parent | 30dcd79011c867c56fd7d5a1201cda0eb656167d (diff) | |
zebra: fix wrong check for mpls label
Add a parameter for `zebra_mpls_fec_for_label()`, as before if it is `NULL`,
otherwise exclude what this parameter represents.
Before:
```
anlan(config)# mpls label bind 1.1.1.2/32 88
anlan(config)# mpls label bind 1.1.1.2/32 88
% Label already bound to a FEC
anlan(config)# mpls label bind 1.1.1.3/32 88
% Label already bound to a FEC
```
After:
```
anlan(config)# mpls label bind 1.1.1.2/32 88
anlan(config)# mpls label bind 1.1.1.2/32 88
anlan(config)# mpls label bind 1.1.1.3/32 88
% Label already bound to a FEC
```
Signed-off-by: anlan_cs <anlan_cs@tom.com>
Diffstat (limited to 'lib/pid_output.c')
0 files changed, 0 insertions, 0 deletions
