Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion orchagent/intfsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,10 @@ void IntfsOrch::doTask(Consumer &consumer)

if (!mac)
{
mac = gMacAddress;
// Prefer the port's own MAC (e.g. a VLAN SVI's gateway MAC populated
// from VLAN_TABLE) and only fall back to the switch MAC when the port
// has none.
mac = port.m_mac ? port.m_mac : gMacAddress;
Comment on lines +1081 to +1084
}

// update mac if it is changed
Expand Down
Loading