5dbf512cda
Why I did it Cherry-pick #14601, for code conflict. Support to add SONiC OS Version in device info. It will be used to display the version info in the SONiC command "show version". The version is used to do the FIPS certification. We do not do the FIPS certification on a specific release, but on the SONiC OS Version. SONiC Software Version: SONiC.master-13812.218661-7d94c0c28 SONiC OS Version: 11 Distribution: Debian 11.6 Kernel: 5.10.0-18-2-amd64 Work item tracking Microsoft ADO (number only): 17894593 How I did it How to verify it
33 lines
882 B
Django/Jinja
33 lines
882 B
Django/Jinja
---
|
|
build_version: '{{ build_version }}'
|
|
{% if debian_version is defined -%}
|
|
debian_version: '{{ debian_version }}'
|
|
{% endif -%}
|
|
{% if kernel_version is defined -%}
|
|
kernel_version: '{{ kernel_version }}'
|
|
{% endif -%}
|
|
asic_type: {{ asic_type }}
|
|
{% if asic_subtype is defined and asic_subtype != '' -%}
|
|
asic_subtype: '{{ asic_subtype }}'
|
|
{% endif -%}
|
|
commit_id: '{{ commit_id }}'
|
|
branch: '{{ branch }}'
|
|
{% if release is defined and release != '' -%}
|
|
release: '{{ release }}'
|
|
{% else -%}
|
|
release: 'none'
|
|
{% endif -%}
|
|
build_date: {{ build_date }}
|
|
build_number: {{ build_number }}
|
|
built_by: {{ built_by }}
|
|
{% if components is defined -%}
|
|
{% for component in components.split() | unique -%}
|
|
{% set name, version = component.split('==') -%}
|
|
{{ name }}: {{ version }}
|
|
{% endfor -%}
|
|
{% endif -%}
|
|
{% if ENABLE_ASAN == "y" -%}
|
|
asan: 'yes'
|
|
{% endif -%}
|
|
sonic_os_version: {{ sonic_os_version }}
|