From 9485d99bd3941b13abf7e47fc7e1d56f7b4fee55 Mon Sep 17 00:00:00 2001 From: Jon Loeliger Date: Fri, 8 Nov 2019 15:05:23 -0600 Subject: interface: Allow VLAN tag-rewrite on non-sub-interfaces too. This fix was first made in commit fdea5c6a00b74971dbb1b7ec4e25839a871006ca but was subsequently lost in commit 053204ab039d34a990ff0e14c32ce3b294fcce0e Added unit test for setting VTR on a non-sub-interface to help ensure no future regressions of this ability. Type: fix Change-Id: I71ce2684fb72383741455829ae2d397ea2e95eae Signed-off-by: Jon Loeliger --- src/vnet/interface_funcs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vnet/interface_funcs.h') diff --git a/src/vnet/interface_funcs.h b/src/vnet/interface_funcs.h index 9241b34d59d..388a438c02b 100644 --- a/src/vnet/interface_funcs.h +++ b/src/vnet/interface_funcs.h @@ -448,6 +448,9 @@ unformat_function_t unformat_vnet_hw_interface; unformat_function_t unformat_vnet_hw_interface_flags; unformat_function_t unformat_vnet_sw_interface_flags; +/* VLAN tag-rewrite */ +format_function_t format_vtr; + /* Node runtime for interface output function. */ typedef struct { -- cgit 1.2.3-korg