Skip to content

Commit

Permalink
Dont update device type to invalid, when interface configuration is d…
Browse files Browse the repository at this point in the history
…eleted

Upon interface config deleting agent was setting device type of a VMI
to invalid, and if the device type is invalid, ip and evpn routes
were not getting deleted. Once device type is determined dont
update the type to invalid. test_intf already catches this case
Closes-bug:#1459124

Change-Id: I51e745db03fe3d39cce72470e3cf7d54635727ea
  • Loading branch information
naveen-n committed May 27, 2015
1 parent 6da3a8a commit 304f1ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vnsw/agent/oper/vm_interface.cc
Expand Up @@ -1668,7 +1668,8 @@ bool VmInterface::CopyConfig(const InterfaceTable *table,
*ecmp_changed = true;
}

if (device_type_ != data->device_type_) {
if (data->device_type_ != VmInterface::DEVICE_TYPE_INVALID &&
device_type_ != data->device_type_) {
device_type_= data->device_type_;
ret = true;
}
Expand Down

0 comments on commit 304f1ab

Please sign in to comment.