Cluster Desired State Configuration reports non-compliance for the profile path:reportprofile/esx/network_vss/switches/0/bridge/nics Cluster value [].
Although remediation tasks complete successfully without any reported errors, the cluster continues to remain in a non-compliant state.
==========================================
On Problematic node it is:
==========================================
{
"name": "vSwitch0",
"bridge": {
"link_discovery_protocol": {
"protocol": "CDP",
"operation": "LISTEN"
},
"nics": []
},
==========================================
On Working node it is:
==========================================
{
"name": "vSwitch0",
"bridge": {
"link_discovery_protocol": {
"protocol": "CDP",
"operation": "LISTEN"
}
},
==========================================
vSphere 8.x
The issue is caused by version-specific behavior related to the "nics" property in the ESXi configstore.
In ESXi 7.x, when the last physical NIC (pNIC) is removed from vSwitch0, the "nics" property remained in the configstore with a value of [].
In ESXi 8.0.3, this behavior is corrected, and the "nics" property is automatically removed when the final NIC is detached.
The workaround requires correcting the configstore on affected ESXi hosts where bridge/nics is set to [].
Steps:
Download the fixBridgeNic.py script.
Copy the script to all affected (or all) hosts in the cluster using WinSCP.
Execute the script on each ESXi host:
python fixBridgeNic.py