Skip to content

Commit

Permalink
ospfd: Get route-map name for default-information originate
Browse files Browse the repository at this point in the history
LR1.wue3(config)# route-map foo-bar-baz10 permit 10
LR1.wue3(config-route-map)# exit
LR1.wue3(config)# router ospf
LR1.wue3(config-router)#  ospf router-id 172.18.254.201
LR1.wue3(config-router)#  log-adjacency-changes
LR1.wue3(config-router)# default-information originate metric 50 metric-type 1 route-map foo-bar-baz10
LR1.wue3(config-router)# end

Results in:

LR1.wue3# show run
...
!
router ospf
 ospf router-id 172.18.254.201
 log-adjacency-changes
 default-information originate metric 50 metric-type 1 route-map oute-map
exit
!
route-map foo-bar-baz10 permit 10
exit
!
end

Let's fix this.

Signed-off-by: Donatas Abraitis <[email protected]>
(cherry picked from commit bd162aa)
  • Loading branch information
ton31337 authored and mergify[bot] committed Nov 8, 2022
1 parent 99477bc commit 4a21c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ospfd/ospf_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -9412,7 +9412,7 @@ DEFUN (ospf_default_information_originate,
idx = 1;
/* Get route-map */
if (argv_find(argv, argc, "route-map", &idx))
rtmap = argv[idx]->arg + 1;
rtmap = argv[idx + 1]->arg;

/* To check if user is providing same route map */
if ((!rtmap && !ROUTEMAP_NAME(red)) ||
Expand Down

0 comments on commit 4a21c60

Please sign in to comment.