File tree 1 file changed +0
-31
lines changed
1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change 26
26
27
27
initqueue --onetime modprobe --all -b -q nvme nvme_tcp nvme_core nvme_fabrics
28
28
29
- validate_ip_conn () {
30
- if ! getargbool 0 rd.neednet; then
31
- warn " $trtype transport requires rd.neednet=1"
32
- return 1
33
- fi
34
-
35
- local_address=$( ip -o route get to " $traddr " | sed -n ' s/.*src \([0-9a-f.:]*\).*/\1/p' )
36
-
37
- # confirm we got a local IP address
38
- if ! is_ip " $local_address " ; then
39
- warn " $traddr is an invalid address"
40
- return 1
41
- fi
42
-
43
- ifname=$( ip -o route get from " $local_address " to " $traddr " | sed -n ' s/.*dev \([^ ]*\).*/\1/p' )
44
-
45
- if ! ip l show " $ifname " > /dev/null 2>&1 ; then
46
- warn " invalid network interface $ifname "
47
- return 1
48
- fi
49
-
50
- # confirm there's a route to destination
51
- if ! ip route get " $traddr " > /dev/null 2>&1 ; then
52
- warn " no route to $traddr "
53
- return 1
54
- fi
55
- }
56
-
57
29
parse_nvmf_discover () {
58
30
traddr=" none"
59
31
trtype=" none"
@@ -103,9 +75,6 @@ parse_nvmf_discover() {
103
75
warn " unsupported transport $trtype "
104
76
return 0
105
77
fi
106
- if [ " $trtype " = " tcp" ]; then
107
- validate_ip_conn
108
- fi
109
78
if [ " $trtype " = " fc" ]; then
110
79
echo " --transport=$trtype --traddr=$traddr --host-traddr=$hosttraddr " >> /etc/nvme/discovery.conf
111
80
else
You can’t perform that action at this time.
0 commit comments