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

Added change to add 'peerType' as element in NEIGH_STATE_TABLE. #15265

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

abdosi
Copy link
Contributor

@abdosi abdosi commented May 30, 2023

What I did:
Added change to add 'peerType' as element in NEIGH_STATE_TABLE.
'peerType' can be i-BGP vs e-BGP determined based on local and remote AS number.

Why I did:
This is useful to filter neighbors in SONiC as internal vs external in chassis use-case (example: telemetry)
Microsoft ADO: https://msazure.visualstudio.com/One/_workitems/edit/24166635

Verification:

  • Manual Verification
127.0.0.1:6379[6]> hgetall "NEIGH_STATE_TABLE|10.0.0.5"
1) "state"
2) "Established"
3) "peerType"
4) "e-BGP"
127.0.0.1:6379[6]> hgetall  "NEIGH_STATE_TABLE|2603:10e2:400::4"
1) "state"
2) "Established"
3) "peerType"
4) "i-BGP"

'peerType' can be i-BGP vs e-BGP determined by local and remote AS
number.
This is useful to filter neighbors in SONiC chassis use case

Signed-off-by: Abhishek Dosi <[email protected]>
@abdosi
Copy link
Contributor Author

abdosi commented Jun 1, 2023

@StormLiangMS can you please help review/merge this.

Copy link
Contributor

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

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

Approved with one question, for chassis, i-bgp between linecards? e-bgp for everything else?

@abdosi

@abdosi
Copy link
Contributor Author

abdosi commented Jun 2, 2023

Approved with one question, for chassis, i-bgp between linecards? e-bgp for everything else?

@abdosi

Approved with one question, for chassis, i-bgp between linecards? e-bgp for everything else?

@abdosi

yes i-BGP between all ASIC's across all LC's

abdosi added a commit to sonic-net/sonic-mgmt that referenced this pull request Jun 4, 2023
@prsunny
Copy link
Contributor

prsunny commented Jun 6, 2023

Should we add a test for this?

@abdosi
Copy link
Contributor Author

abdosi commented Jun 6, 2023

Should we add a test for this?

sonic-mgmt test has been updated for this: sonic-net/sonic-mgmt#8462

@abdosi
Copy link
Contributor Author

abdosi commented Jun 7, 2023

@yxieca this is need to be cherry-picked.

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202211: #15380

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #15381

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jun 7, 2023
…c-net#15265)

What I did:
Added change to add 'peerType' as element in NEIGH_STATE_TABLE.
'peerType' can be i-BGP vs e-BGP determined based on local and remote AS number.

Why I did:
This is useful to filter neighbors in SONiC as internal vs external in chassis use-case (example: telemetry)

Verification:

Manual Verification
127.0.0.1:6379[6]> hgetall "NEIGH_STATE_TABLE|10.0.0.5"
1) "state"
2) "Established"
3) "peerType"
4) "e-BGP"
127.0.0.1:6379[6]> hgetall  "NEIGH_STATE_TABLE|2603:10e2:400::4"
1) "state"
2) "Established"
3) "peerType"
4) "i-BGP"

Also sonic-mgmt test case test_bgp_fact.py is enhanced:  Enhanced bgp_fact to validate NEIGH_STATE_TABLE element 'peerType' sonic-mgmt#8462
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jun 7, 2023
…c-net#15265)

What I did:
Added change to add 'peerType' as element in NEIGH_STATE_TABLE.
'peerType' can be i-BGP vs e-BGP determined based on local and remote AS number.

Why I did:
This is useful to filter neighbors in SONiC as internal vs external in chassis use-case (example: telemetry)

Verification:

Manual Verification
127.0.0.1:6379[6]> hgetall "NEIGH_STATE_TABLE|10.0.0.5"
1) "state"
2) "Established"
3) "peerType"
4) "e-BGP"
127.0.0.1:6379[6]> hgetall  "NEIGH_STATE_TABLE|2603:10e2:400::4"
1) "state"
2) "Established"
3) "peerType"
4) "i-BGP"

Also sonic-mgmt test case test_bgp_fact.py is enhanced:  Enhanced bgp_fact to validate NEIGH_STATE_TABLE element 'peerType' sonic-mgmt#8462
abdosi added a commit to abdosi/sonic-mgmt that referenced this pull request Jun 13, 2023
wangxin pushed a commit to sonic-net/sonic-mgmt that referenced this pull request Jun 14, 2023
…8462) (#8572)

Added validation for this change : sonic-net/sonic-buildimage#15265

Cherry-pick of PR: #8462 to 202205 branch.

Signed-off-by: Abhishek Dosi <[email protected]>
sonic-otn pushed a commit to sonic-otn/sonic-buildimage that referenced this pull request Sep 20, 2023
…c-net#15265)

What I did:
Added change to add 'peerType' as element in NEIGH_STATE_TABLE.
'peerType' can be i-BGP vs e-BGP determined based on local and remote AS number.

Why I did:
This is useful to filter neighbors in SONiC as internal vs external in chassis use-case (example: telemetry)

Verification:

Manual Verification
127.0.0.1:6379[6]> hgetall "NEIGH_STATE_TABLE|10.0.0.5"
1) "state"
2) "Established"
3) "peerType"
4) "e-BGP"
127.0.0.1:6379[6]> hgetall  "NEIGH_STATE_TABLE|2603:10e2:400::4"
1) "state"
2) "Established"
3) "peerType"
4) "i-BGP"

Also sonic-mgmt test case test_bgp_fact.py is enhanced:  Enhanced bgp_fact to validate NEIGH_STATE_TABLE element 'peerType' sonic-mgmt#8462
mrkcmo pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 3, 2023
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants