File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 26
26
set -eou pipefail
27
27
'' + lib . concatMapStrings ( { id , mac , ... } : ''
28
28
if [ -e /sys/class/net/${ id } ]; then
29
- ${ pkgs . iproute2 } /bin/ip tuntap del name '${ id } ' mode tap ${ tapFlags }
29
+ ${ pkgs . iproute2 } /bin/ip link delete '${ id } '
30
30
fi
31
31
32
32
${ pkgs . iproute2 } /bin/ip tuntap add name '${ id } ' mode tap user '${ user } ' ${ tapFlags }
35
35
tap-down = ''
36
36
set -ou pipefail
37
37
'' + lib . concatMapStrings ( { id , mac , ... } : ''
38
- ${ pkgs . iproute2 } /bin/ip tuntap del name '${ id } ' mode tap ${ tapFlags }
38
+ ${ pkgs . iproute2 } /bin/ip link delete '${ id } '
39
39
'' ) tapInterfaces ;
40
40
}
41
41
) (
44
44
set -eou pipefail
45
45
'' + lib . concatMapStrings ( { id , mac , macvtap , ... } : ''
46
46
if [ -e /sys/class/net/${ id } ]; then
47
- ${ pkgs . iproute2 } /bin/ip link del name '${ id } '
47
+ ${ pkgs . iproute2 } /bin/ip link delete '${ id } '
48
48
fi
49
49
${ pkgs . iproute2 } /bin/ip link add link '${ macvtap . link } ' name '${ id } ' address '${ mac } ' type macvtap '${ macvtap . mode } '
50
50
${ pkgs . iproute2 } /bin/ip link set '${ id } ' allmulticast on
56
56
macvtap-down = ''
57
57
set -ou pipefail
58
58
'' + lib . concatMapStrings ( { id , ... } : ''
59
- ${ pkgs . iproute2 } /bin/ip link del name '${ id } '
59
+ ${ pkgs . iproute2 } /bin/ip link delete '${ id } '
60
60
'' ) macvtapInterfaces ;
61
61
}
62
62
) ] ;
You can’t perform that action at this time.
0 commit comments