Reproduce
set
set policy prefix-list ROUTE-OSPF-STATIC rule 10 action 'permit' set policy prefix-list ROUTE-OSPF-STATIC rule 10 prefix '172.16.222.0/28' set policy route-map ROUTE-MAP-OSPF-STATIC rule 10 action 'permit' set policy route-map ROUTE-MAP-OSPF-STATIC rule 10 match ip address prefix-list 'ROUTE-OSPF-STATIC' set protocols ospf area 0 area-type normal set protocols ospf area 0 network '172.16.253.128/29' set protocols ospf area 0 network '172.16.254.100/32' set protocols ospf area 0 network '172.16.252.68/30' set protocols ospf area 0 network '172.16.252.64/30' set protocols ospf log-adjacency-changes set protocols ospf parameters abr-type 'cisco' set protocols ospf parameters router-id '172.16.254.100' set protocols ospf passive-interface 'default' set protocols ospf passive-interface-exclude 'tun100' set protocols ospf passive-interface-exclude 'wg02' set protocols ospf passive-interface-exclude 'wg01' set protocols ospf redistribute static metric-type '2' set protocols ospf redistribute static route-map 'ROUTE-MAP-OSPF-STATIC'
show
[email protected]# show protocols ospf area 0 { area-type { normal } network 172.16.253.128/29 network 172.16.254.100/32 network 172.16.252.68/30 network 172.16.252.64/30 } log-adjacency-changes { } parameters { abr-type cisco router-id 172.16.254.100 } passive-interface default passive-interface-exclude tun100 passive-interface-exclude wg02 passive-interface-exclude wg01 redistribute { static { metric-type 2 route-map ROUTE-MAP-OSPF-STATIC } }
error
[email protected]# delete protocols ospf [email protected]# commit [ protocols ospf area 0 network 172.16.253.128/29 ] Can't find specified network area configuration. delete [ protocols ospf ] failed Commit failed
[email protected]# show protocols ospf -area 0 { - area-type { - normal - } - network 172.16.253.128/29 - network 172.16.254.100/32 - network 172.16.252.68/30 - network 172.16.252.64/30 -} -log-adjacency-changes { -} -parameters { - abr-type cisco - router-id 172.16.254.100 -} -passive-interface default -passive-interface-exclude tun100 -passive-interface-exclude wg02 -passive-interface-exclude wg01 -redistribute { - static { - metric-type 2 - route-map ROUTE-MAP-OSPF-STATIC - } -} [edit]
FRR
Expected
[email protected]# vtysh -c "show run" router ospf ospf router-id 172.16.254.100 log-adjacency-changes redistribute static route-map ROUTE-MAP-OSPF-STATIC passive-interface default no passive-interface tun100 no passive-interface wg01 no passive-interface wg02 network 172.16.252.64/30 area 0 network 172.16.252.68/30 area 0 network 172.16.253.128/29 area 0 network 172.16.254.100/32 area 0
Got
[email protected]# vtysh -c "show run" router ospf ospf router-id 172.16.254.100 redistribute static route-map ROUTE-MAP-OSPF-STATIC passive-interface default no passive-interface tun100 no passive-interface wg01 no passive-interface wg02