Skip to content

Commit

Permalink
[switchorch]: support changing mac aging time dynamically. (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
gongjianLhr authored and lguohan committed Nov 29, 2017
1 parent 3a9cf8f commit 2adb21a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion orchagent/switchorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const map<string, sai_switch_attr_t> switch_attribute_map =
{"fdb_broadcast_miss_packet_action", SAI_SWITCH_ATTR_FDB_BROADCAST_MISS_PACKET_ACTION},
{"fdb_multicast_miss_packet_action", SAI_SWITCH_ATTR_FDB_MULTICAST_MISS_PACKET_ACTION},
{"ecmp_hash_seed", SAI_SWITCH_ATTR_ECMP_DEFAULT_HASH_SEED},
{"lag_hash_seed", SAI_SWITCH_ATTR_LAG_DEFAULT_HASH_SEED}
{"lag_hash_seed", SAI_SWITCH_ATTR_LAG_DEFAULT_HASH_SEED},
{"fdb_aging_time", SAI_SWITCH_ATTR_FDB_AGING_TIME}
};

const map<string, sai_packet_action_t> packet_action_map =
Expand Down Expand Up @@ -79,6 +80,10 @@ void SwitchOrch::doTask(Consumer &consumer)
attr.value.u32 = to_uint<uint32_t>(value);
break;

case SAI_SWITCH_ATTR_FDB_AGING_TIME:
attr.value.u32 = to_uint<uint32_t>(value);
break;

default:
invalid_attr = true;
break;
Expand Down

0 comments on commit 2adb21a

Please sign in to comment.