Make pmon feature delayed flag as jinja template#19657
Merged
yxieca merged 33 commits intosonic-net:masterfrom Jul 26, 2024
Merged
Make pmon feature delayed flag as jinja template#19657yxieca merged 33 commits intosonic-net:masterfrom
yxieca merged 33 commits intosonic-net:masterfrom
Conversation
peer device's Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
higher value so that BGP learnt default route is higher priority. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
save as `slice_type` as part of DEVICE_METADATA Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
…graph and" This reverts commit 0f2d26d.
save as `slice_type` as part of DEVICE_METADATA for Chassis Device type Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
pmon need to enable asap to detect ASIC's on Supervisor. pmonm need to enable asap for bring-up of 400G ports on LC's fast becuase of CMIS state machine present in PMON. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
6ba7135 to
2c7fe37
Compare
Contributor
Author
|
Hi @mlok-nokia @arlakshm, please help to review |
Contributor
Author
|
Hi @qiluo-msft @saiarcot895 , could you please help to review and merge? |
Contributor
Author
|
@abdosi for viz |
saiarcot895
reviewed
Jul 25, 2024
| ("database", "always_enabled", false, "always_enabled"), | ||
| ("lldp", "enabled", true, "enabled"), | ||
| ("pmon", "enabled", true, "enabled"), | ||
| ("pmon", "enabled", "{% if 'type' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['type'] == 'SpineRouter' %}False{% else %}True{% endif %}", "enabled"), |
Contributor
There was a problem hiding this comment.
Why use titlecase instead of lowercase here?
Contributor
Author
There was a problem hiding this comment.
This is to align with sonic-net/sonic-host-services#135
In this change https://github.com/sonic-net/sonic-host-services/blob/ca6b3cdb9a56604765ada4ac67234c117f0fb5ad/scripts/featured#L79 , the host-service takes titlecase only and evaluate them with python eval.
saiarcot895
approved these changes
Jul 25, 2024
mssonicbld
pushed a commit
to mssonicbld/sonic-buildimage
that referenced
this pull request
Jul 26, 2024
* Fix the Loopback0 IPv6 address of LC's in chassis not reachable from peer device's Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Added change to have flag Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Assign the metric vaule for Ipv6 default route learnt via RA message to higher value so that BGP learnt default route is higher priority. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Add alternate name for bridge interface on supversior in chassis systrem Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Update service_checker.py * Update init_cfg.json.j2 to handle global scope for lldp feature * Update sonic-feature.yang * Added support to parse "AssociatedSliceStr" attribute of minigraph and save as `slice_type` as part of DEVICE_METADATA Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Revert "Added support to parse "AssociatedSliceStr" attribute of minigraph and" This reverts commit 0f2d26d. * Added support to parse "AssociatedSliceStr" attribute of minigraph and save as `slice_type` as part of DEVICE_METADATA for Chassis Device type Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Update minigraph.py * pmon need not be delayed for SpineRouter/T2. pmon need to enable asap to detect ASIC's on Supervisor. pmonm need to enable asap for bring-up of 400G ports on LC's fast becuase of CMIS state machine present in PMON. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Updated Yang model for Feature delay from boolean to string Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Fix Build Error Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Fix build error Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Update true/false to True/False --------- Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> Co-authored-by: Abhishek Dosi <abdosi@microsoft.com> Co-authored-by: abdosi <58047199+abdosi@users.noreply.github.com>
Collaborator
|
Cherry-pick PR to 202405: #19702 |
mssonicbld
pushed a commit
that referenced
this pull request
Jul 26, 2024
* Fix the Loopback0 IPv6 address of LC's in chassis not reachable from peer device's Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Added change to have flag Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Assign the metric vaule for Ipv6 default route learnt via RA message to higher value so that BGP learnt default route is higher priority. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Add alternate name for bridge interface on supversior in chassis systrem Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Update service_checker.py * Update init_cfg.json.j2 to handle global scope for lldp feature * Update sonic-feature.yang * Added support to parse "AssociatedSliceStr" attribute of minigraph and save as `slice_type` as part of DEVICE_METADATA Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Revert "Added support to parse "AssociatedSliceStr" attribute of minigraph and" This reverts commit 0f2d26d. * Added support to parse "AssociatedSliceStr" attribute of minigraph and save as `slice_type` as part of DEVICE_METADATA for Chassis Device type Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Update minigraph.py * pmon need not be delayed for SpineRouter/T2. pmon need to enable asap to detect ASIC's on Supervisor. pmonm need to enable asap for bring-up of 400G ports on LC's fast becuase of CMIS state machine present in PMON. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Updated Yang model for Feature delay from boolean to string Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Fix Build Error Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Fix build error Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> * Update true/false to True/False --------- Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> Co-authored-by: Abhishek Dosi <abdosi@microsoft.com> Co-authored-by: abdosi <58047199+abdosi@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What I did:
To fix: #19126
Depends on: sonic-net/sonic-host-services#135 and it's submodule update.
ps: this is an enhancement/fix of #19482 since Abhishek is in OOF
Why I did it
PMON was delayed originally for faster uptime of data plane related services in case of fast/warm reboot.
This is not needed for T2/SpineRouter . Infact we need PMON to be up asap because of:
pmon need to enable asap to detect ASIC's on Supervisor.
pmon need to enable asap for bring-up of 400G ports on LC's fast because of CMIS state machine present in PMON.
Work item tracking
How to verify it
Manual Verification and UT has been added in sonic-net/sonic-host-services#135
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)