Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently origin vn is not set for aggregate route. Consider the following example: 1. left-vn -- Service Chain -- Right-vn 2. Internal routing instance created for service chain has route aggregate config 3. Aggregate route for right-vn subnet is added to left-vn Since the aggregate route doesn't have origin vn, it gets leaked backed to right network as service chain route. This can cause black-holing of traffic in right due to wrong next hop for right-vn subnet route Fix: Add origin VN for aggregate route. a. If the routing instance has service chain config, origin vn is the dest-routing-instance b. Else origin-vn is routing instance's virtual network index Re-order origin-vn calculation in service chain code to consider origin-vn present in the BgpAttr(extCommunity) Added test in route aggregate to validate service chain scenario and origin vn Change-Id: I9f1ffb6fedb816eac7b5f070a965cf202b96cb49 Related-bug: #1500698
- Loading branch information
Showing
7 changed files
with
156 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<config> | ||
<virtual-network name="blue-vn"> | ||
<network-id>2000</network-id> | ||
</virtual-network> | ||
<virtual-network name="red-vn"> | ||
<network-id>1000</network-id> | ||
</virtual-network> | ||
<route-aggregate name='red_subnet'> | ||
<aggregate-route-entries> | ||
<route>2.2.2.0/24</route> | ||
</aggregate-route-entries> | ||
<nexthop>1.1.1.3</nexthop> | ||
</route-aggregate> | ||
<route-aggregate name='blue_subnet'> | ||
<aggregate-route-entries> | ||
<route>1.1.1.0/24</route> | ||
</aggregate-route-entries> | ||
<nexthop>1.1.1.3</nexthop> | ||
</route-aggregate> | ||
<routing-instance name="red"> | ||
<virtual-network>red-vn</virtual-network> | ||
<service-chain-info> | ||
<routing-instance>blue</routing-instance> | ||
<source-routing-instance>red</source-routing-instance> | ||
<prefix>1.1.1.0/24</prefix> | ||
<service-chain-address>1.1.1.3</service-chain-address> | ||
</service-chain-info> | ||
<vrf-target>target:1:103</vrf-target> | ||
<route-aggregate to="blue_subnet"/> | ||
</routing-instance> | ||
<routing-instance name="blue"> | ||
<virtual-network>blue-vn</virtual-network> | ||
<service-chain-info> | ||
<routing-instance>red</routing-instance> | ||
<source-routing-instance>blue</source-routing-instance> | ||
<prefix>2.2.2.0/24</prefix> | ||
<service-chain-address>1.1.1.3</service-chain-address> | ||
</service-chain-info> | ||
<vrf-target>target:1:104</vrf-target> | ||
<route-aggregate to="red_subnet"/> | ||
</routing-instance> | ||
</config> |