Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import nc module within health module (#312)
# Description This pull request includes several changes to the `SdnDiag.Health` module, focusing on importing additional modules, improving URL name resolution, and enhancing service state validation. ### Module Imports: * [`src/modules/SdnDiag.Health/SdnDiag.Health.psm1`](diffhunk://#diff-57c55f0db8ff59b4c3946d347cc71a7ff64cd3d3b7f5587e3e3615dcb43f0780R8-R9): Added imports for `SdnDiag.NetworkController.FC` and `SdnDiag.NetworkController.SF` modules to extend functionality. ### URL Name Resolution: * `src/modules/SdnDiag.Health/private/Test-NcUrlNameResolution.ps1`: * Updated to use `Get-SdnNetworkController` instead of `Get-SdnNetworkControllerSF` for consistency. * Improved logic to handle IP address parsing and comparison for network controller certificates. [[1]](diffhunk://#diff-53875d037e2095362d1f4d2ebce09ba56c67e194efbb31a4155b7fc6a28b3a43L30-R47) [[2]](diffhunk://#diff-53875d037e2095362d1f4d2ebce09ba56c67e194efbb31a4155b7fc6a28b3a43L61-R70) ### Service State Validation: * [`src/modules/SdnDiag.Health/private/Test-ServiceState.ps1`](diffhunk://#diff-6853618dcd72434d2b4e84e4b0d8e45e189f4b4990f5694fd2ac2d00cccb2c7dR24-R27): Added a check to return early if no services are defined, avoiding unnecessary processing. # Change type - [x] Bug fix (non-breaking change) - [ ] Code style update (formatting, local variables) - [ ] New Feature (non-breaking change that adds new functionality without impacting existing) - [ ] Breaking change (fix or feature that may cause functionality impact) - [ ] Other # Checklist: - [x] My code follows the style and contribution guidelines of this project. - [x] I have tested and validated my code changes.
- Loading branch information