-
Notifications
You must be signed in to change notification settings - Fork 684
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
Fixes #12170: Delete subinterface and recreate the subinterface in #2513
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
3dc4c7c
Fixes #12170: Delete subinterface and recreate the subinterface in
preetham-singh 88c074b
Updating vrf python cli test scripts to use correct context so that CLIs
preetham-singh a6932d5
[psushow & psuutil] Support PSU power threshold checking (#2326)
stephenxs 4aaa821
[VXLAN]Fixing traceback in show remotemac when mac moves during comma…
dgsudharsan eac82d7
Port 202012 DB migration changes to newer branches (#2515)
vaibhavhd b799c4a
Update vrf add, del commands for duplicate/non-existing VRFs (#2467)
mdanish-kh 66e1fd0
[drop counters] Fix CLI script for unconfigured PGs (#2518)
liorghub 7137509
Add db_migrator_constants.py script to setup.py (#2534)
vaibhavhd 72ab1a3
Change show kube command default value of insecure key to True (#2517)
lixiaoyuner 7578456
Use github code scanning instead of LGTM (#2530)
liushilongbuaa 08ae841
[QoS] Introduce delay to the qos reload flow (#2503)
DavidZagury bb36744
[GCU] Add RemoveCreateOnlyDependency Validator/Generator (#2500)
wen587 a0e6a22
sonic-utilities: Update config reload() to verify formatting of an in…
cchoate54 46a9a54
Transceiver eeprom dom CLI modification to show output from TRANSCEIV…
mihirpat1 36dafb7
[system-health] Improve code structure of system health CLIs (#2453)
Junchao-Mellanox 62dc883
[config] Add check in config interface ip command to block if the int…
dgsudharsan f145b9a
[generate_dump] [Mellanox] Fix the duplicate dfw dump collection prob…
vivekrnv 796b2a1
Merge branch 'master' into subintf
preetham-singh 75441d0
Updating VRF test case for none namespace
preetham-singh 9811ba3
Updating vrf_test for DEFAULT_NAMESPACE
preetham-singh 52c117a
Updating vrf test to increase code coverage for statedb verification as
preetham-singh 6ab0e1c
Updating for better coverage
preetham-singh 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
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.
STATE_DB update must be done by intfmgr, why we doing this explicitly?
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.
@prsunny It is not updated bur rather checked here to confirm that None has been processed and state_db is removed. We already have such loginc here.
sonic-utilities/config/main.py
Line 5105 in ce1c444
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.
Thats right Prince. This is present since VRF bind() CLI was implemented as Sudharsan pointed.
Here click cli is ensuring STATE_DB INTERFACE_TABLE for the interface is deleted to ensure RIF for corresponding interface is deleted before binding interface to new VRF. In unbind scenario for subinterfaces, subinterface has to be deleted and recreated with same subinterface attributes in default vrf.
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.
my concern is what if there is an issue with updating state_db, this will be indefinitely hanging, correct?
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.
@prsunny , yes this will be hung indefinitely. We can handle this in intfmgrd. Can we track this as a separate issue since its applicable to all interfaces(vrf bind operation) and not specific to subinterfaces?