@samitouri / QOSAMI-WSL / commits / 877acde0

update flag name

Catalin-Emil Fetoiu committed Oct 23, 2023 at 17:03 UTC 877acde0e97115636211840e775e062913298824
1 file changed +2 -2
diagnostics/collect-networking-logs.ps1
+2 -2
@@ -2,7 +2,7 @@
2
3 [CmdletBinding()]
4 Param (
5 - [switch]$DeleteHnsNetwork = $false
5 + [switch]$RestartWslReproMode = $false
6 )
7
8 $folder = "WslNetworkingLogs-" + (Get-Date -Format "yyyy-MM-dd_HH-mm-ss")
@@ -20,7 +20,7 @@ if (Test-Path $wslconfig)
20 # Collect Linux network state before the repro
21 & wsl.exe -e ./networking.sh 2>&1 > $folder/linux_network_configuration_before.log
22
23 -if ($DeleteHnsNetwork)
23 +if ($RestartWslReproMode)
24 {
25 # The WSL HNS network is created once per boot. Resetting it to collect network creation logs.
26 Get-HnsNetwork | Where-Object {$_.Name -eq 'WSL'} | Remove-HnsNetwork