Skip to content

Commit

Permalink
create debug_shell_enable config to enable debug shell (#2060)
Browse files Browse the repository at this point in the history
*Enable Debug shell config to enable debug shell.
Signed-off-by: Venkat Garigipati <[email protected]>
  • Loading branch information
VenkatCisco authored and qiluo-msft committed Dec 20, 2021
1 parent d7be0b9 commit 2723ee3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions orchagent/switchorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const map<string, sai_switch_attr_t> switch_attribute_map =
{"ecmp_hash_seed", SAI_SWITCH_ATTR_ECMP_DEFAULT_HASH_SEED},
{"lag_hash_seed", SAI_SWITCH_ATTR_LAG_DEFAULT_HASH_SEED},
{"fdb_aging_time", SAI_SWITCH_ATTR_FDB_AGING_TIME},
{"debug_shell_enable", SAI_SWITCH_ATTR_SWITCH_SHELL_ENABLE},
{"vxlan_port", SAI_SWITCH_ATTR_VXLAN_DEFAULT_PORT},
{"vxlan_router_mac", SAI_SWITCH_ATTR_VXLAN_DEFAULT_ROUTER_MAC}
};
Expand Down Expand Up @@ -180,6 +181,10 @@ void SwitchOrch::doAppSwitchTableTask(Consumer &consumer)
attr.value.u32 = to_uint<uint32_t>(value);
break;

case SAI_SWITCH_ATTR_SWITCH_SHELL_ENABLE:
attr.value.booldata = to_uint<bool>(value);
break;

case SAI_SWITCH_ATTR_VXLAN_DEFAULT_PORT:
attr.value.u16 = to_uint<uint16_t>(value);
break;
Expand Down

0 comments on commit 2723ee3

Please sign in to comment.