Skip to content

Commit

Permalink
Composite next hop for mirror destination is having zero component
Browse files Browse the repository at this point in the history
next hops this because of passing incorrect vm interface mac address
for component next hop key construction.

Fix: derive mac address key from vm_mac() method which is used for
creating interface next hops .

Change-Id: Ic0d0a70903ae3e70a746b81f46d7a1c61f9de51e
Closes-Bug: #1786487
  • Loading branch information
krharsh committed Oct 5, 2018
1 parent 66a8f1d commit 74ece23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vnsw/agent/oper/vxlan.cc
Expand Up @@ -67,7 +67,7 @@ void VxLanTable::VmInterfaceNotify(DBTablePartBase *partition, DBEntryBase *e) {

ComponentNHKeyPtr nh_key(new ComponentNHKey(vm_itf->label(),vm_itf->GetUuid(),
InterfaceNHFlags::BRIDGE,
vm_itf->mac()));
vm_itf->vm_mac()));
// if the interface deleted remove the entry from map
// else add it to composite NH list
if (intf->IsDeleted() || ((vm_itf->l2_active() == false) &&
Expand Down

0 comments on commit 74ece23

Please sign in to comment.