Network traffic shaping is not part of a virtual machine entity
search cancel

Network traffic shaping is not part of a virtual machine entity

book

Article ID: 339688

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

The vSphere API defines properties for network traffic shaping in virtual machine configuration objects and in distributed virtual switch configuration objects. Network traffic shaping is not supported through virtual machine configuration.

These properties are not supported:
VirtualMachineConfigSpec.networkShaper
VirtualMachineConfigInfo.networkShaper


Environment

VMware vSphere Web Services SDK 5.0
VMware vSphere Web Services SDK 4.1

Resolution

To specify the network traffic shaping policy on a port group, use a Virtual Distributed Switch (VDS) configuration. The DistributedVirtualSwitch.config.setting property is a DVPortSetting object.

Use these properties:
DVPortSetting.inShapingPolicy
DVPortSetting.outShapingPolicy
To connect a virtual machine to a distributed virtual switch and use the DVPortSetting policies, specify port or portgroup connections in the distributed virtual port backing (VirtualEthernetCardDistributedVirtualPortBackingInfo) for the virtual Ethernet cards on the virtual machine (VirtualEthernetCard.backing).

For more information, see Managed Object - DistributedVirtualSwitch in the vSphere API documentation.