Hi,all,
I want to redistribute the static route into ospf database,howerver I can not see any thing in my OPSF peer,and the script as:
set policy-options policy-statement OSPF term 1 from instance VR
set policy-options policy-statement OSPF term 1 from protocol static
set policy-options policy-statement OSPF term 1 from route-filter 1.1.1.1/32 exact
set policy-options policy-statement OSPF term 1 then metric 11
set policy-options policy-statement OSPF term 1 then external type 1
set policy-options policy-statement OSPF term 1 then accept
set policy-options policy-statement OSPF term 2 from instance VR
set policy-options policy-statement OSPF term 2 from protocol static
set policy-options policy-statement OSPF term 2 from route-filter 2.2.2.2/32 exact
set policy-options policy-statement OSPF term 2 then metric 50
set policy-options policy-statement OSPF term 2 then external type 1
set policy-options policy-statement OSPF term 2 then accept
set policy-options policy-statement OSPF term 3 from protocol static
set policy-options policy-statement OSPF term 3 from route-filter 0.0.0.0/0 exact
set policy-options policy-statement OSPF term 3 then metric 100
set policy-options policy-statement OSPF term 3 then accept
set routing-instances VR protocols ospf export OSPF
however,I change the "policy-options" ,and then I can see the static route in my OSPF peer,as:
set policy-options policy-statement OSPF term 1 from instance VR
set policy-options policy-statement OSPF term 1 from protocol static
set policy-options policy-statement OSPF term 1 from route-filter 1.1.1.1/32 exact
set policy-options policy-statement OSPF term 1 then metric 11
set policy-options policy-statement OSPF term 1 then external type 1
set policy-options policy-statement OSPF term 1 then accept
set policy-options policy-statement OSPF-2 term 2 from instance VR
set policy-options policy-statement OSPF-2 term 2 from protocol static
set policy-options policy-statement OSPF-2 term 2 from route-filter 2.2.2.2/32 exact
set policy-options policy-statement OSPF-2 term 2 then metric 50
set policy-options policy-statement OSPF-2 term 2 then external type 1
set policy-options policy-statement OSPF-2 term 2 then accept
set policy-options policy-statement OSPF-3 from protocol static
set policy-options policy-statement OSPF-3 from route-filter 0.0.0.0/0 exact
set policy-options policy-statement OSPF-3 then metric 100
set policy-options policy-statement OSPF-3 then accept
set routing-instances VR protocols ospf export OSPF
set routing-instances VR protocols ospf export OSPF-2
set routing-instances VR protocols ospf export OSPF-3
why the first script can not do this?
thank you.