Skip to content

Commit

Permalink
Merge "Encoding is not required completly for DeleteMsg setting the i…
Browse files Browse the repository at this point in the history
…nterface ID should be sufficeint, the Code is common for AddMsg and deleteMsg so now Delete case only interface ID will be encoded. Closes-Bug: #1542009"
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 14, 2016
2 parents 241d9d3 + 00c2122 commit 64b3401
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/vnsw/agent/vrouter/ksync/interface_ksync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,14 @@ int InterfaceKSyncEntry::Encode(sandesh_op::type op, char *buf, int buf_len) {

uint32_t flags = 0;
encoder.set_h_op(op);
if (op == sandesh_op::DELETE) {
encoder.set_vifr_idx(interface_id_);
int error = 0;
encode_len = encoder.WriteBinary((uint8_t *)buf, buf_len, &error);
assert(error == 0);
assert(encode_len <= buf_len);
return encode_len;
}

switch (type_) {
case Interface::VM_INTERFACE: {
Expand Down

0 comments on commit 64b3401

Please sign in to comment.