|
| 1 | +From a0b31fc93cb0ac37dbe5085adb6c86a9c9f7284c Mon Sep 17 00:00:00 2001 |
| 2 | +From: Marcin Zyla <marcin.zyla@vprocess.pl> |
| 3 | +Date: Wed, 17 Sep 2025 13:00:28 +0200 |
| 4 | +Subject: [PATCH] fix: don't rename nodes of tunnel interfaces |
| 5 | + |
| 6 | +--- |
| 7 | + src/vnet/interface.c | 10 +++++++--- |
| 8 | + 1 file changed, 7 insertions(+), 3 deletions(-) |
| 9 | + |
| 10 | +diff --git a/src/vnet/interface.c b/src/vnet/interface.c |
| 11 | +index db47d42c8..c4a852895 100644 |
| 12 | +--- a/src/vnet/interface.c |
| 13 | ++++ b/src/vnet/interface.c |
| 14 | +@@ -1577,9 +1577,13 @@ vnet_rename_interface (vnet_main_t * vnm, u32 hw_if_index, char *new_name) |
| 15 | + hash_unset_mem (im->hw_interface_by_name, old_name); |
| 16 | + hash_set_mem (im->hw_interface_by_name, hw->name, hw_if_index); |
| 17 | + |
| 18 | +- /* rename tx/output nodes */ |
| 19 | +- vlib_node_rename (vm, hw->tx_node_index, "%v-tx", hw->name); |
| 20 | +- vlib_node_rename (vm, hw->output_node_index, "%v-output", hw->name); |
| 21 | ++ /* only rename nodes of non-tunnel ifaces */ |
| 22 | ++ if (hw->dev_class_index != vxlan_device_class.index && hw->dev_class_index != gre_device_class.index) |
| 23 | ++ { |
| 24 | ++ /* rename tx/output nodes */ |
| 25 | ++ vlib_node_rename (vm, hw->tx_node_index, "%v-tx", hw->name); |
| 26 | ++ vlib_node_rename (vm, hw->output_node_index, "%v-output", hw->name); |
| 27 | ++ } |
| 28 | + |
| 29 | + /* rename statseg directory */ |
| 30 | + statseg_interface_rename (vnm, hw->sw_if_index); |
| 31 | +-- |
| 32 | +2.51.0 |
| 33 | + |
0 commit comments