-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Make pmon feature delayed flag as jinja template #19657
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>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
6ba7135
to
2c7fe37
Compare
Hi @mlok-nokia @arlakshm, please help to review |
Hi @qiluo-msft @saiarcot895 , could you please help to review and merge? |
@abdosi for viz |
@@ -38,7 +38,7 @@ | |||
{%- set features = [("bgp", "{% if not DEVICE_RUNTIME_METADATA['ETHERNET_PORTS_PRESENT'] or ('CHASSIS_METADATA' in DEVICE_RUNTIME_METADATA and DEVICE_RUNTIME_METADATA['CHASSIS_METADATA']['module_type'] in ['supervisor']) %}disabled{% else %}enabled{% endif %}", false, "enabled"), | |||
("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"), |
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.
Why use titlecase instead of lowercase here?
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.
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.
* 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>
Cherry-pick PR to 202405: #19702 |
* 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>
* 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>
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)