]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Get route-map name for default-information originate 12276/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 7 Nov 2022 20:23:07 +0000 (22:23 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 7 Nov 2022 20:23:07 +0000 (22:23 +0200)
commitbd162aae094360605b7f4b9b8cd46f6e4ffebc04
tree715c6717aa55bfe145488eb6f6e0a295cdfb577c
parent0096b066f9c53f1760e30df2ded2736692baaa01
ospfd: Get route-map name for default-information originate

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>
ospfd/ospf_vty.c