-
Notifications
You must be signed in to change notification settings - Fork 545
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
add vrrpmgrd to support FRR-VRRP configuration #3106
Open
philo-micas
wants to merge
26
commits into
sonic-net:master
Choose a base branch
from
philo-micas:master-Vrrp
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d58a143
add vrrpmgrd to support FRR-VRRP configuration
philo-micas 72a3fae
Merge branch 'master' into master-Vrrp
philo-micas 4debad9
Merge branch 'master' into master-Vrrp
philo-micas 007657f
Change the name of vrrpmgrd to macvlanmgrd
philo-micas 30d27c3
Merge branch 'master' into master-Vrrp
philo-micas fead7c7
Merge branch 'master' into master-Vrrp
philo-micas e719be1
Merge branch 'master' into master-Vrrp
philo-micas 3b15de8
Merge branch 'master' into master-Vrrp
philo-micas 8c61423
Revert "Change the name of vrrpmgrd to macvlanmgrd"
philo-micas 7bbd64a
Update .gitignore
philo-micas 2dcfe3f
Merge branch 'master' into master-Vrrp
philo-micas e435f24
Merge branch 'master' into master-Vrrp
philo-micas 8e1b602
Merge branch 'master' into master-Vrrp
philo-micas fb3a6a1
Merge branch 'master' into master-Vrrp
philo-micas e938f6a
Merge branch 'master' into master-Vrrp
philo-micas 9e17275
Update test_vrrp.py
philo-micas 2e16b74
Update test_vrrp.py
philo-micas 25476ec
Update test_vrrp.py
philo-micas 582a9e6
Update test_vrrp.py
philo-micas 61b2f4e
Merge branch 'master' into master-Vrrp
philo-micas d73ab54
Update test_vrrp.py
philo-micas 792d1ae
Merge branch 'master' into master-Vrrp
philo-micas 31d2eb8
Merge branch 'master' into master-Vrrp
philo-micas e7e9aac
Merge branch 'master' into master-Vrrp
philo-micas 6710321
support vrf
philo-micas 5f0cfe5
Merge branch 'master' into master-Vrrp
philo-micas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer vrrpmgrd, looks like we used macvlanmgrd in the HLD, please make the changes if possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sonic-net/SONiC#1446 (comment)
As suggested by @nser77, renaming vrrpmgrd to macvlanmgrd would enhance its generality within the whole SONiC architecture, making it more convenient for future functional components to use the macvlan interface type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What future functional components you are referring to here? the whole code is written for VRRP, wondering how you would use this macvlanmgr for other features.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In VRRP, macvlanmgrd manages the configurations of adding, deleting, and addressing for macvlan devices based on VRRP configurations. Although at present only vrrp is using macvlan devices, as long as there is a similar function like VRRP which needs to use macvlan devices, you can subscribe to the corresponding table entries in macvlanmagrd, and then a simple adaptation can realize the unified management of macvlan devices.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not convinced with your answer, I don't see any mention of future functional components you are referring to here. You are trying to make the code changes with the assumption that some feature will make use of this macvlanmgrd.
If you really want to have a generic macvlanmgrd, remove VRRP name usage in the files and use it as a generic library so that any future module can use it, today VRRP feature can make use of generic MACVLAN mgr.
All I'm trying to say here is, either have the generic MACVLAN mgr and use it for the VRRP for now or specific VRRP mgr but not mixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes,you are right. We will use vrrpmgrd and have also submitted the PR for HLD sonic-net/SONiC#1834. Could you please review it. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mmm, I agree with both of you.