5.0: Granular Routing policy. Multiple policy entries do not work
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R5.0 |
Fix Committed
|
Critical
|
Madhusudan Bhat | |||
Trunk |
Fix Committed
|
Critical
|
Madhusudan Bhat |
Bug Description
Version: 5.0
Picked up the latest build.
Topo:
10.204.217.7 cfgm control ui openstack
10.204.216.68 cfgm control
10.204.216.72 cfgm control
10.204.217.16 vrouter
10.204.217.17 vrouter
left-vn --- right-vn
I have a routing policy with 2 from-then conditions in it. If the first match is hit, the second is not evaluated. But even if the first does not match, the second is not evaluated at all.
This is my policy
from prefix [8.1.1.3/32 exact] then add communities [64512:55555] action default
from protocol interface then add communities [64512:66666] action default
Does not work even if I have this
from prefix [8.1.1.3/32 exact] then action accept
from protocol interface then add communities [64512:66666] action default
<iq>
<routing-
<term>
<term-
<protocol>
<community>
<community-
</term-
<term-
<update>
<as-path>
<expand />
</as-path>
<community>
<add>
</add>
<remove />
<set />
</community>
<local-
<med>0</med>
</update>
<action>
</term-
</term>
<term>
<term-
<protocol>
<community>
<community-
</term-
<term-
<update>
<as-path>
<expand />
</as-path>
<community>
<add>
</add>
<remove />
<set />
</community>
<local-
<med>0</med>
</update>
<action>
</term-
</term>
</routing-
</iq>
Multiple policies are working. We found out a bug in agent where we don't assign interface type correctly. Assigning it to Hari for now.