Skip to content

Commit

Permalink
mxrouterctl: Fix bug with inherited vlan interfaces
Browse files Browse the repository at this point in the history
Currently, when a vlan interface is created on the host system (e.g.
with mxvlan) and moved to the mxrouter instance with interface(), it
gets deleted, because it is recogized visible as a vlan interface in the
router namespace but not configured via vlan().

Ignore existing vlan interfaces which are configured into the router
namespace via interface().
  • Loading branch information
donald committed Sep 22, 2023
1 parent bf60dd0 commit be147e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mxrouter/mxrouterctl
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ sub start {
}

my ($have_vlan)=read_active_vlans();
delete $have_vlan->{$_} for keys %$want_if; # vlan interfaces created in main and moved via interaface()
my ($new_vlan,$del_vlan)=({},{},{},{});

for (keys %$want_vlan) {
Expand Down

0 comments on commit be147e1

Please sign in to comment.