Skip to content

Commit

Permalink
Use current vrf for mirror entry.
Browse files Browse the repository at this point in the history
Do not use the vrf name so that -1 (current vrf) will be used.

Change-Id: I1627dbdce471980813a1e2830e07aa3ed3b2ab73
related-bug: 1550312
  • Loading branch information
haripk committed Feb 27, 2016
1 parent 39a5856 commit 3a91f7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vnsw/agent/oper/vm_interface.cc
Expand Up @@ -555,8 +555,10 @@ static void ReadAnalyzerNameAndCreate(Agent *agent,
} else {
dport = ContrailPorts::AnalyzerUdpPort();
}
// not using the vrf coming in; by setting this to empty, -1 will be
// configured so that current VRF will be used (for leaked routes).
agent->mirror_table()->AddMirrorEntry
(mirror_to.analyzer_name, mirror_to.routing_instance,
(mirror_to.analyzer_name, std::string(),
agent->GetMirrorSourceIp(dip),
agent->mirror_port(), dip, dport);
data.analyzer_name_ = mirror_to.analyzer_name;
Expand Down

0 comments on commit 3a91f7d

Please sign in to comment.