Skip to content

Network offloads compatibility configure to null #1102

Description

@ranmalka-cs

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions