Fix reset the vlan flags when main interface is deleted. 05/10705/2
authorSteve Shin <jonshin@cisco.com>
Tue, 20 Feb 2018 19:38:34 +0000 (11:38 -0800)
committerDamjan Marion <dmarion.lists@gmail.com>
Tue, 20 Feb 2018 21:40:59 +0000 (21:40 +0000)
commit8a3e575dfca22500744df76c40de600d8aa61e12
treea16342e6ddc56f09a0476c3fde11e7070c4521be
parentf3ab4896ed13733a22e9637395973fc1808823e1
Fix reset the vlan flags when main interface is deleted.

The dot1q_vlans & dot1ad_vlans should be reset to 0 when main interface
is deleted. Otherwise, VPP will crash if the same interface index is reused
without attaching the sub interface on it.

Change-Id: I484d4a8892ff4241a3a32b22189746193d5f2594
Signed-off-by: Steve Shin <jonshin@cisco.com>
src/vnet/ethernet/interface.c