Skip to content

Commit

Permalink
[everflow]: Do not tag outer packet when DST port is route port or LA…
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandrivantsiv authored and pavel-shirshov committed Mar 15, 2017
1 parent 6f06b59 commit d5d6318
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchagent/mirrororch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ bool MirrorOrch::getNeighborInfo(const string& name, MirrorEntry& session, const
}
else if (session.neighborInfo.port.m_type == Port::LAG)
{
session.neighborInfo.vlanId = session.neighborInfo.port.m_port_vlan_id;
session.neighborInfo.vlanId = session.addVLanTag ? session.neighborInfo.port.m_port_vlan_id : 0;

if (session.neighborInfo.port.m_members.empty())
{
Expand All @@ -387,7 +387,7 @@ bool MirrorOrch::getNeighborInfo(const string& name, MirrorEntry& session, const
else
{
session.neighborInfo.portId = session.neighborInfo.port.m_port_id;
session.neighborInfo.vlanId = session.neighborInfo.port.m_port_vlan_id;
session.neighborInfo.vlanId = session.addVLanTag ? session.neighborInfo.port.m_port_vlan_id : 0;
session.neighborInfo.resolved = true;
}

Expand Down
2 changes: 2 additions & 0 deletions orchagent/mirrororch.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct MirrorEntry
uint8_t dscp;
uint8_t ttl;
uint8_t queue;
bool addVLanTag;

struct
{
Expand Down Expand Up @@ -57,6 +58,7 @@ struct MirrorEntry
dscp(0),
ttl(0),
queue(0),
addVLanTag(false),
sessionId(0),
refCount(0)
{
Expand Down

0 comments on commit d5d6318

Please sign in to comment.