diff options
author | Jon Loeliger <jdl@netgate.com> | 2019-11-08 15:05:23 -0600 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-11-12 20:37:55 +0000 |
commit | 9485d99bd3941b13abf7e47fc7e1d56f7b4fee55 (patch) | |
tree | d3f4e90f5cdd5966300d61c89c4bfea81ce5dab9 /src/vnet/interface_funcs.h | |
parent | 592a909a302262cf4088a5468b8e427f577725e8 (diff) |
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 <jdl@netgate.com>
Diffstat (limited to 'src/vnet/interface_funcs.h')
-rw-r--r-- | src/vnet/interface_funcs.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |