diff --git a/Kubernetes/windows/debug/VFP.psm1 b/Kubernetes/windows/debug/VFP.psm1 index 96e2b921..bb373639 100644 --- a/Kubernetes/windows/debug/VFP.psm1 +++ b/Kubernetes/windows/debug/VFP.psm1 @@ -50,7 +50,6 @@ function Get-VfpPorts() { Param( [ValidateNotNullorEmpty()] - [string]$SwitchName = $(throw "Please provide a switch name."), [parameter(Mandatory=$false)][string]$MacAddress ) $vfpPorts = @() @@ -323,7 +322,7 @@ function Get-VfpRules_HnsEndpointId() ) $ep = (Get-HnsEndpoint $EndpointId) - $port = Get-VfpPorts -SwitchName $ep.VirtualNetworkName -MacAddress $ep.MacAddress + $port = Get-VfpPorts -MacAddress $ep.MacAddress throw "TBD" diff --git a/Kubernetes/windows/debug/dumpVfpPolicies.ps1 b/Kubernetes/windows/debug/dumpVfpPolicies.ps1 index 522f7e81..03fbe296 100644 --- a/Kubernetes/windows/debug/dumpVfpPolicies.ps1 +++ b/Kubernetes/windows/debug/dumpVfpPolicies.ps1 @@ -1,5 +1,4 @@ param( - [string]$switchName = $(throw "please specify a switch name"), [string]$outfile = "vfprules.txt" ) @@ -22,7 +21,7 @@ ipmo $helper DownloadFile -Url "https://raw.githubusercontent.com/$GithubSDNRepository/master/Kubernetes/windows/debug/VFP.psm1" -Destination $BaseDir\VFP.psm1 ipmo $BaseDir\VFP.psm1 -$ports = Get-VfpPorts -SwitchName $switchName +$ports = Get-VfpPorts # Dump the port info $ports | select 'Port name', 'Mac Address', 'PortId' | Out-File $outfile -Encoding ascii -Append