[EVPN VXLAN] Multi Homing: Control node not accepting the Type 1 route when address family Route Target enabled

Bug #1727559 reported by chhandak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
Critical
Suresh Balineni
R4.1
Fix Committed
Critical
Suresh Balineni
Trunk
Fix Committed
Critical
Suresh Balineni

Bug Description

QFX is advertising type 1 route with community target configured under switch-option (target:65000:1) which is different than RI route target. But contrail control does not have that in import target list. This particular vrf target is configured by DM and should be added in contrail control import list as well.

When route-target community is disabled seeing the route in bgp evpn table

* 1:172.16.2.1:0::112233445566778899::FFFF:FFFF/192 AD/ESI (1 entry, 1 announced)
 BGP group _contrail_asn-65000 type Internal
     Route Distinguisher: 172.16.2.1:0
     Route Label: 1
     Nexthop: Self
     Flags: Nexthop Change
     Localpref: 100
     AS path: [65000] I
     Communities: target:65000:1 encapsulation:vxlan(0x8) esi-label:0x0:all-active (label 0)

Corroponding DM route
root@5b11-qfx2# run show configuration groups __contrail__ switch-options
vtep-source-interface lo0.0;
route-distinguisher 172.16.2.1:1;
vrf-import [ _contrail_vn-test2-l2-5-import _contrail_vn-test-1-l2-4-import ];
vrf-target {
    target:65000:1;
    auto;
}

chhandak (chhandak)
description: updated
Changed in juniperopenstack:
importance: Undecided → High
assignee: nobody → Nischal Sheth (nsheth)
milestone: none → r4.1.0.0-fcs
information type: Proprietary → Public
Nischal Sheth (nsheth)
tags: added: device-manager
removed: contrail-control
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/37512
Submitter: Suresh Balineni (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/37512
Committed: http://github.com/Juniper/contrail-controller/commit/05cdf5e6fd3b45547c256e1adb0c0ef2644d12cb
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 05cdf5e6fd3b45547c256e1adb0c0ef2644d12cb
Author: sbalineni <email address hidden>
Date: Tue Nov 14 14:51:04 2017 -0800

[DM]: Push right QFX Leaf config for control-node to accept EVPN Type 1 routes (Multi Homing)

Following config will be pushed

set groups __contrail__ policy-options policy-statement _contrail_switch_export_policy_ term t1 then community add _contrail_switch_export_community_
set groups __contrail__ policy-options community _contrail_switch_export_community_ members target:65000:8000002
set groups __contrail__ switch-options vrf-export _contrail_switch_export_policy_

Generated XML:

<policy-options>
<junos:comment>/* L2 Switch Global Export Policy */</junos:comment>
<policy-statement>
<name>_contrail_switch_export_policy_</name>
<term>
<name>t1</name>
<then>
<community>
<add/>
<community-name>_contrail_switch_export_community_</community-name>
</community>
</then>
</term>
</policy-statement>
</policy-options>

<policy-options>
<community>
<name>_contrail_switch_export_community_</name>
<members>target:65000:8000002</members>
</community>
</policy-options>

<switch-options>
<vrf-export>_contrail_switch_export_policy_</vrf-export>
</switch-options>

- Device Schema : CommunityType parameter 'members' is changed from scalar type to array.
More than one member is supported by JUNOS.

- Unit Tests will be added to mainline commit.

Change-Id: Ic20863144a92010f7ca2f4d168ffcb83b808bbbf
Closes-Bug: #1727559

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/37630
Submitter: Suresh Balineni (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/37630
Committed: http://github.com/Juniper/contrail-controller/commit/e9c48464ea657c0991f49bf46067fdcdd6383c15
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit e9c48464ea657c0991f49bf46067fdcdd6383c15
Author: sbalineni <email address hidden>
Date: Tue Nov 14 14:51:04 2017 -0800

[DM]: Push right QFX Leaf config for control-node to accept EVPN Type 1 routes (Multi Homing)

Following config will be pushed

set groups __contrail__ policy-options policy-statement _contrail_switch_export_policy_ term t1 then community add _contrail_switch_export_community_
set groups __contrail__ policy-options community _contrail_switch_export_community_ members target:65000:8000002
set groups __contrail__ switch-options vrf-export _contrail_switch_export_policy_

Generated XML:

<policy-options>
<junos:comment>/* L2 Switch Global Export Policy */</junos:comment>
<policy-statement>
<name>_contrail_switch_export_policy_</name>
<term>
<name>t1</name>
<then>
<community>
<add/>
<community-name>_contrail_switch_export_community_</community-name>
</community>
</then>
</term>
</policy-statement>
</policy-options>

<policy-options>
<community>
<name>_contrail_switch_export_community_</name>
<members>target:65000:8000002</members>
</community>
</policy-options>

<switch-options>
<vrf-export>_contrail_switch_export_policy_</vrf-export>
</switch-options>

- Device Schema : CommunityType parameter 'members' is changed from scalar type to array.
More than one member is supported by JUNOS.

- Unit Tests will be added to mainline commit.

Change-Id: Ic20863144a92010f7ca2f4d168ffcb83b808bbbf
Closes-Bug: #1727559
(cherry picked from commit 05cdf5e6fd3b45547c256e1adb0c0ef2644d12cb)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/38344
Submitter: Suresh Balineni (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/38344
Committed: http://github.com/Juniper/contrail-controller/commit/43afeda04e3d01b3672181e5a1a8d84d213b82d6
Submitter: Zuul (<email address hidden>)
Branch: master

commit 43afeda04e3d01b3672181e5a1a8d84d213b82d6
Author: sbalineni <email address hidden>
Date: Tue Nov 14 14:51:04 2017 -0800

[DM]: Push right QFX Leaf config for control-node to accept EVPN Type 1 routes (Multi Homing)

Following config will be pushed

set groups __contrail__ policy-options policy-statement _contrail_switch_export_policy_ term t1 then community add _contrail_switch_export_community_
set groups __contrail__ policy-options community _contrail_switch_export_community_ members target:65000:8000002
set groups __contrail__ switch-options vrf-export _contrail_switch_export_policy_

Generated XML:

<policy-options>
<junos:comment>/* L2 Switch Global Export Policy */</junos:comment>
<policy-statement>
<name>_contrail_switch_export_policy_</name>
<term>
<name>t1</name>
<then>
<community>
<add/>
<community-name>_contrail_switch_export_community_</community-name>
</community>
</then>
</term>
</policy-statement>
</policy-options>

<policy-options>
<community>
<name>_contrail_switch_export_community_</name>
<members>target:65000:8000002</members>
</community>
</policy-options>

<switch-options>
<vrf-export>_contrail_switch_export_policy_</vrf-export>
</switch-options>

- Device Schema : CommunityType parameter 'members' is changed from scalar type to array.
More than one member is supported by JUNOS.

- Unit Tests added

- Fixes for UTs after adding support QFX 10K

Change-Id: Ic20863144a92010f7ca2f4d168ffcb83b808bbbf
Closes-Bug: #1727559

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.