Skip to content

Commit

Permalink
Merge "Disable interface add messages for sub interfaces without a pa…
Browse files Browse the repository at this point in the history
…rent"
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jan 11, 2016
2 parents 205496a + 930bbab commit bd40bd8
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 bd40bd8

Please sign in to comment.