Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vnetorch] Advertise vnet tunnel routes #2058

Merged
merged 3 commits into from
Jan 11, 2022
Merged

Conversation

shi-su
Copy link
Contributor

@shi-su shi-su commented Dec 2, 2021

What I did
Advertise active vnet tunnel routes.

Why I did it
The overlay routes programmed on the device need to be advertised to BGP peers. This PR aims to meet this requirement.

How I verified it
Add an entry in ADVERTISE_NETWORK_TABLE for active overlay routes

Details if related

@@ -1563,12 +1564,36 @@ void VNetRouteOrch::postRouteState(const string& vnet, IpPrefix& ipPrefix, NextH
fvVector.emplace_back("state", route_state);

state_vnet_rt_tunnel_table_->set(state_db_key, fvVector);

if (route_state == "active")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Advertisement must be done only if the VNET attribute is set to advertise . It should not break the previous behavior of default as no-advertise.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added support for advertise_prefix attribute and updated vs tests.

@shi-su shi-su marked this pull request as ready for review December 10, 2021 21:46
@shi-su shi-su requested a review from prsunny December 13, 2021 17:33
@liat-grozovik
Copy link
Collaborator

@shi-su should this PR go to 202111 as well? if so can you please add a label?

@shi-su shi-su merged commit b96ee54 into sonic-net:master Jan 11, 2022
judyjoseph pushed a commit that referenced this pull request Jan 17, 2022
What I did
Advertise active vnet tunnel routes.

Why I did it
The overlay routes programmed on the device need to be advertised to BGP peers. This PR aims to meet this requirement.

How I verified it
Add an entry in ADVERTISE_NETWORK_TABLE for active overlay routes
shi-su added a commit to shi-su/sonic-swss that referenced this pull request Jan 21, 2022
What I did
Advertise active vnet tunnel routes.

Why I did it
The overlay routes programmed on the device need to be advertised to BGP peers. This PR aims to meet this requirement.

How I verified it
Add an entry in ADVERTISE_NETWORK_TABLE for active overlay routes
shi-su added a commit that referenced this pull request Jan 26, 2022
…oint health monitoring (#2104)

What I did
Cherry-pick changes in #1960, #1883, #1955, #2058

Changes in #1960:
Add functions to create/remove next hop groups for vnet tunnel routes.
Count the reference count of next hop groups to create and remove as needed.
Share the counter of next hop groups with routeorch.
Add vs test

Changes in #1883:
Implement bfdorch to program hardware BFD sessions via bfd SAI.
Add vs test for bfd sessions.

Changes in #1955:
Add functions to create/remove next hop groups for vnet tunnel routes.
Count the reference count of next hop groups to create and remove as needed.
Share the counter of next hop groups with routeorch.
Adapt route endpoint according to the BFD state of endpoints.

Changes in #2058:
Advertise active vnet tunnel routes.

Why I did it
To add support for overlay ECMP with endpoint health monitoring.
preetham-singh pushed a commit to preetham-singh/sonic-swss that referenced this pull request Aug 6, 2022
What I did
Advertise active vnet tunnel routes.

Why I did it
The overlay routes programmed on the device need to be advertised to BGP peers. This PR aims to meet this requirement.

How I verified it
Add an entry in ADVERTISE_NETWORK_TABLE for active overlay routes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants