Skip to content

Commit 0ab757d

Browse files
PatrickDaGastro
authored andcommitted
fix: iproute syntax for macvtap mode
1 parent 700ca19 commit 0ab757d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nixos-modules/microvm/interfaces.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ in
4646
if [ -e /sys/class/net/${id} ]; then
4747
${pkgs.iproute2}/bin/ip link delete '${id}'
4848
fi
49-
${pkgs.iproute2}/bin/ip link add link '${macvtap.link}' name '${id}' address '${mac}' type macvtap '${macvtap.mode}'
49+
${pkgs.iproute2}/bin/ip link add link '${macvtap.link}' name '${id}' address '${mac}' type macvtap mode '${macvtap.mode}'
5050
${pkgs.iproute2}/bin/ip link set '${id}' allmulticast on
5151
echo 1 > "/proc/sys/net/ipv6/conf/${id}/disable_ipv6"
5252
${pkgs.iproute2}/bin/ip link set '${id}' up

0 commit comments

Comments
 (0)