Network offloads compatibility configure to null
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Hi, I am trying to create DVS and when I connect to the Vcenter the Network offloads compatibility always sets to null and brings this
"This distributed switch is configured for network offloads with null compatibility.
Incompatible settings are disabled or not available."
Reproduction steps
spec = vim.DistributedVirtualSwitch.CreateSpec()
spec.configSpec = vim.DistributedVirtualSwitch.ConfigSpec()
spec.configSpec.name = name
# Define uplink ports
spec.configSpec.uplinkPortPolicy = vim.DistributedVirtualSwitch.NameArrayUplinkPortPolicy()
spec.configSpec.uplinkPortPolicy.uplinkPortName = ['uplink1', 'uplink2']
# Set the product version
spec.productInfo = vim.dvs.ProductSpec()
spec.productInfo.version = config.dvs_ver
# Configure uplink teaming policy
teaming_policy = vim.dvs.VmwareDistributedVirtualSwitch.UplinkPortOrderPolicy()
teaming_policy.activeUplinkPort = ['uplink1']
teaming_policy.standbyUplinkPort = ['uplink2']
uplink_teaming_policy = vim.dvs.VmwareDistributedVirtualSwitch.UplinkPortTeamingPolicy()
uplink_teaming_policy.uplinkPortOrder = teaming_policy
port_config = vim.dvs.VmwareDistributedVirtualSwitch.VmwarePortConfigPolicy()
port_config.uplinkTeamingPolicy = uplink_teaming_policy
spec.configSpec.defaultPortConfig = port_config
# Set Network offloads compatibility to None
spec.capability = None
# Get datacenter and create DVS
datacenter = get_obj_or_raise_exc(si.content, [vim.Datacenter], config.datacenter_name)
if is_real_run():
task = datacenter.networkFolder.CreateDVS_Task(spec)
WaitForTask(task, si=si)
dvs = task.info.result
else:
dvs = None
return dvs
Expected behavior
Network offloads compatibility sets to Null
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproduction in the issue and inspect how vim.DistributedVirtualSwitch.CreateSpec, spec.capability, and datacenter.networkFolder.CreateDVS_Task represent network offloads compatibility. Reproduce the DVS creation against vCenter, then compare the resulting compatibility value and warning with the stated expected behavior; the issue needs clarification because both observed and expected behavior describe null.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100