-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Network Controller test to check for Network Adapter that matches RestInterface property #391
base: main
Are you sure you want to change the base?
Conversation
param() | ||
|
||
Confirm-IsNetworkController | ||
if ($Global:SdnDiagnostics.EnvironmentInfo.ClusterConfigType -ieq 'FailoverCluster') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isnt this too punishing?
We could just silently pass it, or we could have a field saying skipped/no applicable and let the execution continue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be too punishing as would require the user to directly invoke, which will just terminate and not process further. The test itself is only included in the Debug-NetworkController under the SF cluster type.
$sdnHealthTest = New-SdnHealthTest | ||
try { | ||
$node = Get-SdnNetworkControllerNode -Name $env:COMPUTERNAME -ErrorAction Stop | ||
$netAdapter = Get-NetAdapter -Name $node.RestInterface -ErrorAction Ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this work ? isnt it suppose to be executed on the network controller itself ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get-SdnNetworkControllerNode is a wrapper around Get-NetworkController node that has fault tolerance if the SF cluster is down. -Name is used to return back the node that matches the local node, rather than all nodes in the cluster.
Description
Summary of changes:
Change type
Checklist: