Skip to content

Commit

Permalink
Disable interface add messages for sub interfaces without a parent
Browse files Browse the repository at this point in the history
Change-Id: Id5050053bd4c1badbfc9d8e806684c6878655a9d
Closes-bug: 1526179
  • Loading branch information
semihalf-berestovskyy-andriy committed Dec 31, 2015
1 parent cdebeb0 commit 930bbab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vnsw/agent/vrouter/ksync/interface_ksync.cc
Expand Up @@ -485,6 +485,11 @@ int InterfaceKSyncEntry::Encode(sandesh_op::type op, char *buf, int buf_len) {
return 0;
}

// No need to add VLAN sub-interface if there is no parent
if (vmi_device_type_ == VmInterface::VM_VLAN_ON_VMI && !parent_.get()) {
return 0;
}

uint32_t flags = 0;
encoder.set_h_op(op);

Expand Down

0 comments on commit 930bbab

Please sign in to comment.