Skip to content

Commit ae061e5

Browse files
authored
create debug_shell_enable config to enable debug shell (sonic-net#2060)
*Enable Debug shell config to enable debug shell. Signed-off-by: Venkat Garigipati <[email protected]>
1 parent 45e446d commit ae061e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

orchagent/switchorch.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const map<string, sai_switch_attr_t> switch_attribute_map =
2626
{"ecmp_hash_seed", SAI_SWITCH_ATTR_ECMP_DEFAULT_HASH_SEED},
2727
{"lag_hash_seed", SAI_SWITCH_ATTR_LAG_DEFAULT_HASH_SEED},
2828
{"fdb_aging_time", SAI_SWITCH_ATTR_FDB_AGING_TIME},
29+
{"debug_shell_enable", SAI_SWITCH_ATTR_SWITCH_SHELL_ENABLE},
2930
{"vxlan_port", SAI_SWITCH_ATTR_VXLAN_DEFAULT_PORT},
3031
{"vxlan_router_mac", SAI_SWITCH_ATTR_VXLAN_DEFAULT_ROUTER_MAC}
3132
};
@@ -344,6 +345,10 @@ void SwitchOrch::doAppSwitchTableTask(Consumer &consumer)
344345
attr.value.u32 = to_uint<uint32_t>(value);
345346
break;
346347

348+
case SAI_SWITCH_ATTR_SWITCH_SHELL_ENABLE:
349+
attr.value.booldata = to_uint<bool>(value);
350+
break;
351+
347352
case SAI_SWITCH_ATTR_VXLAN_DEFAULT_PORT:
348353
attr.value.u16 = to_uint<uint16_t>(value);
349354
break;

0 commit comments

Comments
 (0)