Clean up the L2 interface configs when creating the interfaces 43/5543/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 27 Feb 2017 20:00:02 +0000 (21:00 +0100)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 27 Feb 2017 20:06:20 +0000 (21:06 +0100)
commit32dfd77df0240d26eebe7dd2058b36d66289bda8
treee00c70337ce9b3bdc1e535b8ec5964b8ab2e3be7
parent149745f95eec5b2e88685d0b08993d0f977f5935
Clean up the L2 interface configs when creating the interfaces

Without the cleanup in the L2 input/output configs,
the creation of an interface with sw_if_index belonging
to a previously deleted interface will use the stale
vlan tag push-pop configuration from that interface,
resulting in loss of connectivity when the host receives
tagged packets but expects untagged ones.

Change-Id: Ic186390ef3a41277f57847ed2962848b98379092
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
vnet/vnet/interface.c