Skip to content

Commit

Permalink
[portsorch]: Move PVID setting for port before adding it to LAG (#6)
Browse files Browse the repository at this point in the history
Signed-off-by: Volodymyr Samotiy <[email protected]>
  • Loading branch information
Volodymyr Samotiy authored and lguohan committed Feb 21, 2018
1 parent da5f3d1 commit 86dd822
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2212,6 +2212,12 @@ bool PortsOrch::addLagMember(Port &lag, Port &port)
{
SWSS_LOG_ENTER();

sai_uint32_t pvid;
if (getPortPvid(lag, pvid))
{
setPortPvid (port, pvid);
}

sai_attribute_t attr;
vector<sai_attribute_t> attrs;

Expand Down Expand Up @@ -2252,11 +2258,6 @@ bool PortsOrch::addLagMember(Port &lag, Port &port)
return false;
}
}
sai_uint32_t pvid;
if (getPortPvid(lag, pvid))
{
setPortPvid (port, pvid);
}

LagMemberUpdate update = { lag, port, true };
notify(SUBJECT_TYPE_LAG_MEMBER_CHANGE, static_cast<void *>(&update));
Expand Down

0 comments on commit 86dd822

Please sign in to comment.