Skip to content

Commit

Permalink
Fix extra network interface bonded in bridge on sle12 autoyast profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Julie-CAO committed Jul 15, 2024
1 parent 8c50385 commit aea43b8
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,17 @@
<bootproto>dhcp</bootproto>
<bridge>yes</bridge>
<bridge_forwarddelay>15</bridge_forwarddelay>
<!-- Use specified interface instead of a list to avoid ip lease inconsistency. Please refer to poo#135641. -->
% if ($check_var->('SUT_NETDEVICE', 'eth1') or $check_var->('SUT_NETDEVICE', 'em1')) {
<!-- Use specified interface instead of a list to avoid bonding issues which act as router and created illegal duplicate traffics for gateway of its subnet. -->
% if ($get_var->('SUT_NETDEVICE')) {
<!-- For machines with em1 as master interface, its MAC is defined as SUT_NETDEVICE -->
<!-- fg. "SUT_NETDEVICE: F4:02:70:B9:3A:66" for blackbauhinia in workers.ini -->
% if ($get_var->('SUT_NETDEVICE') =~ /((?:[0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2})/) {
<bridge_ports>em1</bridge_ports>
% } else {
<bridge_ports><%= $get_var->('SUT_NETDEVICE') %></bridge_ports>
% }
% } else {
<bridge_ports>eth0 eth1 em1 em2</bridge_ports>
<bridge_ports>eth0</bridge_ports>
% }
<!-- Turn bridge_stp off to unblock autoyast installation. Please refer to bsc#1222105 -->
<bridge_stp>off</bridge_stp>
Expand Down

0 comments on commit aea43b8

Please sign in to comment.