allow export-only and import-only route-targets for virtual-network

Bug #1378957 reported by Nischal Sheth
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Wishlist
Sachin Bansal

Bug Description

There are cases where it's useful to add export only and import only
route-targets to a virtual-network. For example, this can be used to
create hub-and-spoke topology for a collection of virtual-networks.

Note that the notion of export only and import only targets for routing
instances is already supported and used under the covers for service
chaining. This enhancement is to support export/import-only targets
for VNs.

Currently route-targets for a VN are configured using route-target-list
property which is of type RouteTargetList. RouteTargetList is simply a
list of route-target strings.

A simple way to add desired functionality would to be add a couple more
properties called export-route-target-list and import-route-target-list.
Route targets configured using route-target-list property will continue
to be treated as import and export targets for backward compatibility.

UI should allow user to specify target as Import and Export, Export Only
or Import Only. It needs to add the targets to appropriate property i.e.
route-target-list, export-route-target-list or import-route-target-list.

Schema transformer should process the [export|import]-route-target-list
and add those targets to the default routing-instance for the VN, with
the appropriate type. Further, if there's a service chain starting at
the VN, the export-only targets for the VN should also be applied to
the first service routing-instance in the chain.

Note that it may not be sufficient to configure import and export targets
on VNs in order to communication, even though the routes will be imported
into the VNs. User will additionally need to configure policy so that the
right ACL can be generated for the VN. Policy configuration may reduce the
need for user to configure import-only targets in many cases since policy
has pretty much the same effect. However, import-only targets should still
be supported to allow maximum flexibility.

Tags: config ui
Nischal Sheth (nsheth)
description: updated
Pedro Marques (5-roque)
information type: Proprietary → Public
Nischal Sheth (nsheth)
no longer affects: opencontrail
Nischal Sheth (nsheth)
description: updated
Nischal Sheth (nsheth)
description: updated
Nischal Sheth (nsheth)
description: updated
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/15689
Submitter: Sachin Bansal (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/15689
Committed: http://github.org/Juniper/contrail-controller/commit/0b35d521e62227aff2703a6df2a0226245350958
Submitter: Zuul
Branch: master

commit 0b35d521e62227aff2703a6df2a0226245350958
Author: Sachin Bansal <email address hidden>
Date: Tue Dec 8 14:24:18 2015 -0800

Added support for import/export external targets

Before this commit, any external route targets configured on virtual
networks are imported and exported in the corresponding VRF. With
this change, we are adding ability to specify import-only and
export-only targets.

Change-Id: I4c5a40648e83af3cfcb02e9e50a2f8876e84a315
Closes-Bug: 1378957

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

Review in progress for https://review.opencontrail.org/16889
Submitter: Nischal Sheth (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/16889
Committed: http://github.org/Juniper/contrail-controller/commit/d0bc63b1d42255a0fbbaafb065a19c2c990607f3
Submitter: Zuul
Branch: master

commit d0bc63b1d42255a0fbbaafb065a19c2c990607f3
Author: Nischal Sheth <email address hidden>
Date: Thu Feb 4 12:12:36 2016 -0800

Refine processing of export only route targets

Do not use export only targets to determine origin VN.
Do not import any export only targets when processing a connection.

Change-Id: Iab2c7afe3b4566193290a386b3d26d3c6272cdc2
Closes-Bug: 1378957

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.