Skip to content

Commit

Permalink
Merge pull request os-autoinst#17927 from dzedro/s390x
Browse files Browse the repository at this point in the history
Use different gw ip based on SUT location/hostname
  • Loading branch information
dzedro authored Oct 6, 2023
2 parents 29171ff + 1724719 commit 48441b5
Show file tree
Hide file tree
Showing 19 changed files with 95 additions and 0 deletions.
5 changes: 5 additions & 0 deletions data/autoyast_qam/12-common_base_installation.xml.ep
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
5 changes: 5 additions & 0 deletions data/autoyast_qam/12_installation.xml.ep
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
5 changes: 5 additions & 0 deletions data/autoyast_qam/15-common_base_installation.xml.ep
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
5 changes: 5 additions & 0 deletions data/autoyast_qam/15_installation.xml.ep
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
5 changes: 5 additions & 0 deletions data/autoyast_sle12/ay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
5 changes: 5 additions & 0 deletions data/qam/dracut/12-SP2_custom_lvm.xml.ep
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
5 changes: 5 additions & 0 deletions data/qam/dracut/12-SP2_custom_usr.xml.ep
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
5 changes: 5 additions & 0 deletions data/qam/dracut/12_custom_lvm.xml.ep
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
5 changes: 5 additions & 0 deletions data/yam/autoyast/support_images/create_hdd_ha_sles.xml.ep
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@
<route>
<destination>default</destination>
<device>eth0</device>
% if ( $get_var->('WORKER_HOSTNAME') =~ /prg2/ ) {
<gateway>10.145.10.254</gateway>
% }
% if ( $get_var->('WORKER_HOSTNAME') =~ /nue2/ ) {
<gateway>10.161.159.254</gateway>
% }
<netmask>-</netmask>
</route>
</routes>
Expand Down

0 comments on commit 48441b5

Please sign in to comment.