-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 Support to runtime render bgp and teamd feature state and lldp has_asic_scope flag #11796
Conversation
df46ed418e661a9bccdb2639d8873def356f8ba0 (HEAD -> master, origin/master, origin/HEAD) Fix the LLDP_LOC_CHASSIS not getting populated if no remote neighbors are present (sonic-net#39) e487532e11cc0e97cfce573b6b997fdd0beeb660 [CI] Set up CI&PR with Azure Pipelines (sonic-net#38) 3c9f488490a1dbded20dbf2d8a88a5ab4dbda8df Replace swsssdk's SonicV2Connector with swsscommon's implementation (sonic-net#35) Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
has_asic_scope flag. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@mlok-nokia : Can you please approve this. |
@arlakshm can you please review this. |
@@ -61,7 +61,11 @@ | |||
"state": "{{state}}", | |||
"has_timer" : {{has_timer | lower()}}, | |||
"has_global_scope": {% if feature + '.service' in installer_services.split(' ') %}true{% else %}false{% endif %}, | |||
{%- if feature in ["lldp"] %} | |||
"has_per_asic_scope": {% raw %}"{% 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']) %}False{% else %}True{% endif %}"{% endraw %}, | |||
{%- else %} | |||
"has_per_asic_scope": {% if feature + '@.service' in installer_services.split(' ') %}true{% else %}false{% endif %}, |
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.
has_per_asic_scope is changed from boolean_type to string, should we change here too ?
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.
@judyjoseph : thanks for the comment and catching this. Updated.
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@abdosi this PR cannot be cherry-picked cleanly. Can you raise separate PR for 202205? |
…has_asic_scope flag (sonic-net#11796) Added Support to runtime render bgp and teamd feature `state` and lldp `has_asic_scope` flag Needed for SONiC on chassis. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com> Co-authored-by: mlok <marty.lok@nokia.com>
What I did:
Added Support to runtime render bgp and teamd feature
state
and lldphas_asic_scope
flagHow I did:
Define new runtime metadata
dict
as define in #11795 which is used for rendering by hostcfgd.Also in
swss.sh
only add teamd as Dependent service if Ethernet ports are present on the device.Same approach can be used for other docker/services as needed.
Hostcfgd modication: sonic-net/sonic-host-services#14
Order of PR merge will be:
#11795
sonic-net/sonic-host-services#14 and Submodule Update of same.
Finally this PR will be merged.
Why I did:
Not to create dockers which are not needed.
How I Verify:
Manual Verification.