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 <donatas@opensourcerouting.org>
(cherry picked from commit
bd162aae094360605b7f4b9b8cd46f6e4ffebc04)
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)) ||