Hi,
I believe this to be a bug, we are very accustomed to working with OSPF2 on a variety of different routing platforms where we regularly distribute to OSPF connected and static routes. The problem with R80.40 does not appear to relate to JHA take 118 as I hit this issue once before and worked around it, surprised to still see this being an issue but didn't log it with TAC as I assumed this common scenario to affect countless other customers as well...
To clarify, the following:
set static-route 192.168.50.0/24 nexthop gateway address 100.127.254.1 on
set route-redistribution to ospf2 instance default from static-route all-ipv4-routes on
Correctly creates type-5 AS external Link State:
Type-5 AS External Link States
Link State Type: AS External Link
Link State ID: 192.168.50.0
LS Age: 957
Options: ASE
Advertising Router: 100.127.254.2
LS Seq Num: 0x8000001e
CheckSum: 0x679d
Length: 36
Network Mask: 255.255.255.0
Metric Type: 1
TOS: 0
Metric: 1
Forward Address: 0.0.0.0
External Route Tag: 0x00000000
It however also creates the following, which then overrides the valid OSPF LSA on the other devices:
Type-5 AS External Link States
Link State Type: AS External Link
Link State ID: 192.168.50.0
LS Age: 957
Options: ASE
Advertising Router: 100.127.254.2
LS Seq Num: 0x8000001g
CheckSum: 0xe687
Length: 36
Network Mask: 0.0.0.0
Metric Type: 1
TOS: 0
Metric: 1
Forward Address: 0.0.0.0
External Route Tag: 0x00000000
At least the OSPF2 filtering mechanism appear to apply to received OSPF LSAs and not the routes OSPF attempts to install in to the local system's routing table from the LSA database. By filtering all LSAs with a network mask of 0.0.0.0 (/32) works around the issue.