3a2b8c6ba5
#### Why I did it I made this change to support warm/fast reboot for SONiC extension packages as per HLD Azure/SONiC#682. #### How I did it I extended manifest.json.j2 with new warm/fast reboot related fields and also extended sonic_debian_extension.j2 script template to generate the shutdown order files for warm and fast reboot.
35 lines
1.5 KiB
Django/Jinja
35 lines
1.5 KiB
Django/Jinja
{
|
|
"version": "1.0.0",
|
|
"package": {
|
|
"version": "{{ version }}",
|
|
"depends": {{ depends.split()|json if depends is defined else []}},
|
|
"name": "{{ package_name }}"
|
|
},
|
|
"service": {
|
|
"name": "{{ name }}",
|
|
"requires": {{ requires.split()|json if requires is defined else [] }},
|
|
"after": {{ after.split()|json if after is defined else [] }},
|
|
"before": {{ before.split()|json if before is defined else [] }},
|
|
"dependent-of": {{ dependent_of.split()|json if dependent_of is defined else [] }},
|
|
"asic-service": {{ asic_service }},
|
|
"host-service": {{ host_service }},
|
|
"warm-shutdown": {
|
|
"after": {{ warm_shutdown_after.split()|json if warm_shutdown_after is defined else [] }},
|
|
"before": {{ warm_shutdown_before.split()|json if warm_shutdown_before is defined else [] }}
|
|
},
|
|
"fast-shutdown": {
|
|
"after": {{ fast_shutdown_after.split()|json if fast_shutdown_after is defined else [] }},
|
|
"before": {{ fast_shutdown_before.split()|json if fast_shutdown_before is defined else [] }}
|
|
}
|
|
},
|
|
"container": {
|
|
"privileged": {{ privileged if privileged else 'false' }},
|
|
"volumes": {{ volumes.split()|json if volumes is defined else [] }},
|
|
"tmpfs": {{ tmpfs.split()|json if tmpfs is defined else [] }}
|
|
},
|
|
"cli": {
|
|
"config": "{{ config_cli_plugin|default('') }}",
|
|
"show": "{{ show_cli_plugin|default('') }}"
|
|
}
|
|
}
|