Skip to content

Commit

Permalink
[warm boot] Define SAI_SWITCH_ATTR_PRE_SHUTDOWN for warm shutdown (#890)
Browse files Browse the repository at this point in the history
* [warm boot] Define SAI_SWITCH_ATTR_PRE_SHUTDOWN for warm shutdown

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
  • Loading branch information
yxieca authored and lguohan committed Nov 22, 2018
1 parent 7812372 commit 725560c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions inc/saiswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -1676,6 +1676,25 @@ typedef enum _sai_switch_attr_t
*/
SAI_SWITCH_ATTR_UNINIT_DATA_PLANE_ON_REMOVAL,

/**
* @brief Instruct SAI to execute switch pre-shutdown
*
* Indicates controlled switch pre-shutdown as first step of warm shutdown.
* This hint is optional, SAI application could skip this step and
* go directly to warm shutdown.
* This hint should be ignored, if at the time SAI receives this hint,
* SAI_SWITCH_ATTR_RESTART_WARM is NOT already set to TRUE.
* The scope of pre-shutdown is to backup SAI/SDK data, but leave CPU port
* active for some final control plane traffic to go out.
* TRUE - Execute switch pre-shutdown for warm shutdown
* FALSE - No-op, does NOT mean cancelling already executed pre-shutdown
*
* @type bool
* @flags CREATE_AND_SET
* @default false
*/
SAI_SWITCH_ATTR_PRE_SHUTDOWN,

/**
* @brief End of attributes
*/
Expand Down
1 change: 1 addition & 0 deletions meta/aspell.en.pws
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,4 @@ wildcard
www
timestamp
watchlist
pre

0 comments on commit 725560c

Please sign in to comment.