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

VNET and BGP route coexistence #3345

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

siqbal1986
Copy link
Contributor

What I did
This PR adds the logic to give Vnet routes precedence over BGP learnt route.
This PR also refactors the test_vnet.py to break out the common code into a library.
Why I did it
Currently if a route is learnt via BGP and added into the hardware, adding a VNET route results in failure. In addition due to a bug in VnetOrch, we start advertising the failed route, This prompts the BGP to remove the learnt route in favor of the local route. Since the Vnet Orch doesn't retry adding the Vnet route, This results in no route being present in the Hardware.
How I verified it
Added 2 tests to verify the learnt route is removed when a Vnet route is added.
One test covers the scnerio where BFD sessions are brought up before the Vnet route is added and the 2nd covers when the Vnet route is added before the BFD sessions are brought up.
Details if related

@siqbal1986 siqbal1986 changed the title vnet route precedence over BGP learnt route. VNET and BGP route coexistence Oct 29, 2024
@prsunny
Copy link
Collaborator

prsunny commented Oct 30, 2024

Can you fix coverage?

@@ -8,1222 +8,7 @@
from swsscommon import swsscommon
from pprint import pprint
from dvslib.dvs_common import wait_for_result


def create_entry(tbl, key, pairs):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are these removed? Can we add few tests for BGP routes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants