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 <venkatg@cisco.com>
  • Loading branch information
VenkatCisco authored Dec 3, 2021
1 parent 45e446d commit ae061e5
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 @@ -26,6 +26,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 @@ -344,6 +345,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 ae061e5

Please sign in to comment.