diff options
| author | anlan_cs <vic.lan@pica8.com> | 2023-04-02 08:33:25 +0800 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-04-04 13:50:39 +0000 |
| commit | c7991cc54b9dbdc4acd08417ba600441f5e13731 (patch) | |
| tree | 90cced654d8552f22ff21592204ce9a9928bb388 /lib/command.c | |
| parent | c9628fd3012783ce48312bd181b9888a825af093 (diff) | |
ripd: Fix malformed route-map
Currently the process of the `route-map` configuration for `per-vrf-rip`
is wrong.
There are two problems:
1. `ctx->name` for `if_rmap_ctx` is not initialized in `if_rmap_ctx_create()`.
2. The global `if_rmap_ctx_list` is wrongly used for `per-vrf-rip`.
So, two changes for it:
1. Correctly initializes `ctx->name`.
2. Use specific `if_rmap_ctx` for `per-vrf-rip`, not global one.
Note, this related implementation for `route-map` is only for `ripd`.
Before:
```
anlan(config)# route rip vrf vrf1
anlan(config-router)# route-map aa in lan
anlan(config-router)# do show run
!
router rip
route-map aa in lan
exit
!
```
After:
```
anlan(config)# route rip vrf vrf1
anlan(config-router)# route-map aa in lan
anlan(config-router)# do show run
!
router rip vrf vrf1
route-map aa in lan
exit
!
```
Signed-off-by: anlan_cs <vic.lan@pica8.com>
(cherry picked from commit ff0fa00c7d76af64fa4dbc35b17cccaba969e822)
Diffstat (limited to 'lib/command.c')
0 files changed, 0 insertions, 0 deletions
