Skip to content

[bgp] Don't use portchannel members entry#7568

Merged
yejianquan merged 2 commits intosonic-net:masterfrom
saiarcot895:fix-bgp-gr-portchannel-test
Feb 27, 2023
Merged

[bgp] Don't use portchannel members entry#7568
yejianquan merged 2 commits intosonic-net:masterfrom
saiarcot895:fix-bgp-gr-portchannel-test

Conversation

@saiarcot895
Copy link
Copy Markdown
Contributor

Description of PR

Summary:
Fixes sonic-net/sonic-buildimage#11873

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

The members entry in the PORTCHANNEL table has been removed. Switch to using PORTCHANNEL_MEMBERS instead.

Related to sonic-net/sonic-buildimage#13660

How did you do it?

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

The `members` entry in the `PORTCHANNEL` table has been removed. Switch
to using `PORTCHANNEL_MEMBERS` instead.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@saiarcot895 saiarcot895 marked this pull request as ready for review February 26, 2023 07:30

config_facts = duthost.config_facts(host=duthost.hostname, source="running")['ansible_facts']
bgp_neighbors = config_facts.get('BGP_NEIGHBOR', {})
portchannels = config_facts.get('PORTCHANNEL', {})
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Likely some change in the image changed the naming convention?
Do you know if other test modules need such naming changes?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@yejianquan
Copy link
Copy Markdown
Collaborator

Hi @saiarcot895 , should we cherry-pick this change to other branches?

@saiarcot895
Copy link
Copy Markdown
Contributor Author

Probably yes. The original PR will be going to the 202205 and 202211 branches, but I forgot to set the labels there, so they're not yet marked for cherry-pick. Regardless, this change can and should go into sonic-mgmt's 202205 branch before sonic-net/sonic-buildimage#13660 gets cherry-picked to 202205.

Copy link
Copy Markdown
Collaborator

@yejianquan yejianquan left a comment

Choose a reason for hiding this comment

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

LGTM

@yejianquan yejianquan merged commit 21c2137 into sonic-net:master Feb 27, 2023
yejianquan pushed a commit that referenced this pull request Feb 27, 2023
Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

Description of PR
Summary:
Fixes sonic-net/sonic-buildimage#11873
sonic-net/sonic-buildimage#11873

Approach
What is the motivation for this PR?
The members entry in the PORTCHANNEL table has been removed. Switch to using PORTCHANNEL_MEMBERS instead.

Related to sonic-net/sonic-buildimage#13660
sonic-net/sonic-buildimage#13660
@saiarcot895 saiarcot895 deleted the fix-bgp-gr-portchannel-test branch February 27, 2023 19:42
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.

[LAG] Inconsistency in LAG members configuration in config DB

2 participants