vnet: allow format deleted swifidx 78/40078/3
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>
Wed, 6 Dec 2023 16:34:57 +0000 (17:34 +0100)
committerDamjan Marion <dmarion@0xa5.net>
Thu, 7 Dec 2023 10:14:49 +0000 (10:14 +0000)
This patch prevents the sw interfaces format
function to fail when the interface was deleted.
It also prints the swifindex alongside the 'DELETED'
keyword.

Printing deleted swifindex should not happen, but it is still
helpful to have these safeguards for troubleshooting in the case
invariants get corrupted (e.g. fib entry refcounts, ...)

Type: improvement

Change-Id: I66711049db2eebe0ad17e37c3a260ac81d1e5134
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>

No differences found