Skip to content

Commit 7045e21

Browse files
committed
fixed paths pointing to old repo
1 parent 63a8053 commit 7045e21

5 files changed

Lines changed: 11 additions & 14 deletions

File tree

scripts/collectlogs/collectlogs.ps1

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Param(
55
[parameter(Mandatory = $false)] [ValidateSet(1,2)] [int] $HnsSchemaVersion = 2
66
)
77

8-
$GithubSDNRepository = 'Microsoft/SDN'
8+
$GithubSDNRepository = 'Microsoft/wcnscripts'
99
if ((Test-Path env:GITHUB_SDN_REPOSITORY) -and ($env:GITHUB_SDN_REPOSITORY -ne ''))
1010
{
1111
$GithubSDNRepository = $env:GITHUB_SDN_REPOSITORY
@@ -17,18 +17,15 @@ md $BaseDir -ErrorAction Ignore
1717
$helper = "$BaseDir\helper.psm1"
1818
if (!(Test-Path $helper))
1919
{
20-
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/$GithubSDNRepository/master/Kubernetes/windows/helper.psm1" -OutFile $BaseDir\helper.psm1
20+
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/$GithubSDNRepository/master/scripts/helper/helper.psm1" -OutFile $BaseDir\helper.psm1
2121
}
2222
ipmo $helper -Function DownloadFile
2323

24-
DownloadFile -Url "https://raw.githubusercontent.com/$GithubSDNRepository/master/Kubernetes/windows/debug/dumpVfpPolicies.ps1" -Destination $BaseDir\dumpVfpPolicies.ps1
25-
DownloadFile -Url "https://raw.githubusercontent.com/$GithubSDNRepository/master/Kubernetes/windows/hns.v2.psm1" -Destination $BaseDir\hns.v2.psm1
26-
DownloadFile -Url "https://raw.githubusercontent.com/$GithubSDNRepository/master/Kubernetes/windows/debug/starthnstrace.cmd" -Destination $BaseDir\starthnstrace.cmd
27-
DownloadFile -Url "https://raw.githubusercontent.com/$GithubSDNRepository/master/Kubernetes/windows/debug/starthnstrace.ps1" -Destination $BaseDir\starthnstrace.ps1
28-
DownloadFile -Url "https://raw.githubusercontent.com/$GithubSDNRepository/master/Kubernetes/windows/debug/startpacketcapture.cmd" -Destination $BaseDir\startpacketcapture.cmd
29-
DownloadFile -Url "https://raw.githubusercontent.com/$GithubSDNRepository/master/Kubernetes/windows/debug/startpacketcapture.ps1" -Destination $BaseDir\startpacketcapture.ps1
30-
DownloadFile -Url "https://raw.githubusercontent.com/$GithubSDNRepository/master/Kubernetes/windows/debug/stoppacketcapture.cmd" -Destination $BaseDir\stoppacketcapture.cmd
31-
DownloadFile -Url "https://raw.githubusercontent.com/$GithubSDNRepository/master/Kubernetes/windows/debug/portReservationTest.ps1" -Destination $BaseDir\portReservationTest.ps1
24+
DownloadFile -Url "https://raw.githubusercontent.com/$GithubSDNRepository/master/scripts/helper/dumpVfpPolicies.ps1" -Destination $BaseDir\dumpVfpPolicies.ps1
25+
DownloadFile -Url "https://raw.githubusercontent.com/$GithubSDNRepository/master/scripts/helper/hns.v2.psm1" -Destination $BaseDir\hns.v2.psm1
26+
DownloadFile -Url "https://raw.githubusercontent.com/$GithubSDNRepository/master/scripts/starthnstrace/starthnstrace.ps1" -Destination $BaseDir\starthnstrace.ps1
27+
DownloadFile -Url "https://raw.githubusercontent.com/$GithubSDNRepository/master/scripts/startpacketcapture/startpacketcapture.ps1" -Destination $BaseDir\startpacketcapture.ps1
28+
DownloadFile -Url "https://raw.githubusercontent.com/$GithubSDNRepository/master/Kubernetes/scripts/portReservationTest/portReservationTest.ps1" -Destination $BaseDir\portReservationTest.ps1
3229

3330
ipmo $BaseDir\hns.v2.psm1 -Force
3431

scripts/helper/helper.v2.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55

66
$Global:BaseDir = "c:\k"
7-
$Global:GithubSDNRepository = 'Microsoft/SDN'
7+
$Global:GithubSDNRepository = 'Microsoft/wcnscripts'
88
$Global:GithubSDNBranch = 'master'
99
$Global:NetworkName = "cbr0"
1010
$Global:NetworkMode = "l2bridge"

scripts/networkhealth/networkhealth.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
args:
2525
- powershell.exe
2626
- -Command
27-
- "$BaseDir = \"c:\\k\\debug\";Invoke-WebRequest -UseBasicParsing \"https://raw.githubusercontent.com/microsoft/SDN/master/Kubernetes/windows/debug/networkmonitor/networkhealth.ps1\" -OutFile $BaseDir\\networkhealth.ps1;c:\\k\\debug\\networkhealth.ps1 -OutputMode stdout; start-sleep 3600;"
27+
- "$BaseDir = \"c:\\k\\debug\";Invoke-WebRequest -UseBasicParsing \"https://raw.githubusercontent.com/microsoft/wcnscripts/master/scripts/networkhealth/networkhealth.ps1\" -OutFile $BaseDir\\networkhealth.ps1;c:\\k\\debug\\networkhealth.ps1 -OutputMode stdout; start-sleep 3600;"
2828
imagePullPolicy: IfNotPresent
2929
volumeMounts:
3030
- name: kube-path

scripts/starthnstrace/starthnstrace.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ if (-NOT $NoPrompt.IsPresent)
288288
# try to download collectlogs.ps1
289289
try
290290
{
291-
$isCLFnd = Get-WebFile -URI 'https://raw.githubusercontent.com/microsoft/SDN/master/Kubernetes/windows/debug/collectlogs.ps1' -savePath "$BaseDir" -fileName 'collectlogs.ps1'
291+
$isCLFnd = Get-WebFile -URI 'https://raw.githubusercontent.com/microsoft/wcnscripts/master/scripts/collectlogs/collectlogs.ps1' -savePath "$BaseDir" -fileName 'collectlogs.ps1'
292292
}
293293
catch
294294
{

scripts/startpacketcapture/startpacketcapture.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ if (-NOT $NoPrompt.IsPresent)
302302
# try to download collectlogs.ps1
303303
try
304304
{
305-
$isCLFnd = Get-WebFile -URI 'https://raw.githubusercontent.com/microsoft/SDN/master/Kubernetes/windows/debug/collectlogs.ps1' -savePath "$BaseDir" -fileName 'collectlogs.ps1'
305+
$isCLFnd = Get-WebFile -URI 'https://raw.githubusercontent.com/microsoft/wcnscripts/master/scripts/collectlogs/collectlogs.ps1' -savePath "$BaseDir" -fileName 'collectlogs.ps1'
306306
}
307307
catch
308308
{

0 commit comments

Comments
 (0)