Skip to content

Commit

Permalink
fix: macvtap-down as lines
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickDaG authored and astro committed Dec 3, 2024
1 parent d1d09b0 commit 1a62cb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nixos-modules/microvm/interfaces.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ in
${pkgs.coreutils-full}/bin/chown '${user}:${group}' /dev/tap$(< "/sys/class/net/${id}/ifindex")
'') macvtapInterfaces;

macvap-down = pkgs.writeShellScriptBin "microvm-${hostName}-macvtap-down" (''
macvtap-down = ''
set -ou pipefail
'' + lib.concatMapStrings ({ id, mac, ... }: ''
'' + lib.concatMapStrings ({ id, ... }: ''
${pkgs.iproute2}/bin/ip link del name '${id}'
'') macvtapInterfaces);
'') macvtapInterfaces;
}
) ];
}

0 comments on commit 1a62cb5

Please sign in to comment.