Update tx and output node runtime when recycling interface 94/3694/2
authorPierre Pfister <ppfister@cisco.com>
Mon, 17 Oct 2016 14:58:29 +0000 (15:58 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Fri, 4 Nov 2016 12:30:49 +0000 (12:30 +0000)
commitd1f3123795162370885d5920c402f76f64e05891
tree01737cc3b7a9f60adb576eb9579cd387ba7bf9af
parent638aee3e84649ac9a2e5105ec03fec05f72362bf
Update tx and output node runtime when recycling interface

When an interface is removed, and another one is created,
the nodes from the previous interface are reused. The current
code fails when the new interface type differs from the original.
It is necessary to update the node runtime, in particular the
node function, and the node format function.

Jira: VPP-460

Change-Id: I2fc3c609e0173a7f62597230768669039853ab03
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
(cherry picked from commit 064f55da7798f3a4c790b656dba71b32a3b82a5c)
vnet/vnet/interface.c