forked from rhinstaller/kickstart-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bond2-httpks.ks.in
72 lines (58 loc) · 2.48 KB
/
bond2-httpks.ks.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#test name: bond2
%ksappend repos/default.ks
network --device bond0 --bootproto dhcp --bondslaves=@KSTEST_NETDEV2@,@KSTEST_NETDEV3@ --bondopts=mode=active-backup,primary=@KSTEST_NETDEV2@ --activate --onboot=no
# TODO?: using ; as separator in --bondoopts
# need to find an example of such configuration
network --device bond1 --bootproto dhcp --bondslaves=@KSTEST_NETDEV4@,@KSTEST_NETDEV5@ --bondopts=mode=active-backup,primary=@KSTEST_NETDEV4@,miimon=100,fail_over_mac=2
bootloader --timeout=1
zerombr
clearpart --all
autopart
keyboard us
lang en
timezone America/New_York
rootpw qweqwe
shutdown
%packages
%end
%post --nochroot
@KSINCLUDE@ post-nochroot-lib-network.sh
check_gui_configurations @KSTEST_NETDEV1@ @KSTEST_NETDEV2@ @KSTEST_NETDEV3@ @KSTEST_NETDEV4@ @KSTEST_NETDEV5@ bond0 bond1
%end
%post
@KSINCLUDE@ post-lib-network.sh
@KSINCLUDE@ scripts-lib.sh
platform="$(get_platform @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@)"
check_device_config_value bond0 ONBOOT no connection autoconnect false
check_device_config_value bond0_slave_1 ONBOOT no connection autoconnect false
check_device_config_value bond0_slave_2 ONBOOT no connection autoconnect false
check_device_connected bond0 yes
check_bond_has_slave bond0 @KSTEST_NETDEV2@ yes
check_bond_has_slave bond0 @KSTEST_NETDEV3@ yes
check_bond_has_slave bond0 @KSTEST_NETDEV1@ no
check_bond_has_slave bond0 @KSTEST_NETDEV4@ no
check_bond_has_slave bond0 @KSTEST_NETDEV5@ no
check_device_config_value bond1 ONBOOT yes connection autoconnect __NONE
check_device_config_value bond1_slave_1 ONBOOT yes connection autoconnect __NONE
check_device_config_value bond1_slave_2 ONBOOT yes connection autoconnect __NONE
check_device_connected bond1 no
# Configuration from boot options
check_config_exists @KSTEST_NETDEV1@ yes
if [ "${platform}" == "rhel9" ] || [ "${platform}" == "rhel10" ]; then
check_config_exists @KSTEST_NETDEV2@ yes
check_config_exists @KSTEST_NETDEV3@ yes
check_config_exists @KSTEST_NETDEV4@ yes
check_config_exists @KSTEST_NETDEV5@ yes
else
# RHEL-8-FAILURE: anaconda does not create default config file for enslaved device in RHEL8
# Since RHEL-38451 don't create default persistent connection for ports/slaves
check_config_exists @KSTEST_NETDEV2@ no
check_config_exists @KSTEST_NETDEV3@ no
check_config_exists @KSTEST_NETDEV4@ no
check_config_exists @KSTEST_NETDEV5@ no
fi
# No error was written to /root/RESULT file, everything is OK
if [[ ! -e /root/RESULT ]]; then
echo SUCCESS > /root/RESULT
fi
%end