vSphere

 View Only
  • 1.  Seting VLAN priority in the vSwitch

    Posted Dec 22, 2009 08:21 AM

    Hi

    I'm looking for an API to set the VLAN priority bits

    I'm using vijava but any way will do

    Thanks ahead

    Shahar Klein



  • 2.  RE: Seting VLAN priority in the vSwitch

    Broadcom Employee
    Posted Dec 22, 2009 02:55 PM

    Can you please provide an example of what you mean by VLAN 'priority'?

    Anything you can modify from the vSphere Client you can do with the vSphere API (e.g. standard vSwitches or vDS) and this can be done using VI Java (Steve Jin's version is much better) or vSphere SDK for Perl or PowerCLI,etc. these are the various scripting and programming language bindings that exists to communicate with the vSphere APIs.

    The API reference document is a great place to start: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/index.html

    =========================================================================

    William Lam

    VMware vExpert 2009

    VMware ESX/ESXi scripts and resources at:

    Twitter: @lamw

    VMware Code Central - Scripts/Sample code for Developers and Administrators

    VMware Developer Comuunity

    If you find this information useful, please award points for "correct" or "helpful".



  • 3.  RE: Seting VLAN priority in the vSwitch

    Posted Dec 22, 2009 03:36 PM

    VLAN priority:

    http://en.wikipedia.org/wiki/IEEE_802.1p

    So basically as I am able to set the VLAN-ID when configuring a Port Group, I would also like to set a priority to this VLAN.

    I agree that the first place to look is vSphere client and I did, but I couldn't find it in the Port Group dialog box

    Thanks again

    Shahar



  • 4.  RE: Seting VLAN priority in the vSwitch

    Broadcom Employee
    Posted Dec 22, 2009 04:20 PM

    I'm pretty sure this is not possible with configuring a VLAN VMware vSwitch, that may be the case on physical switches but not vSwitches. This may be a configurable item within the vDS (virtual distributed switch but you would need to look into that to see if its possible. If you can do it via the GUI,t hen yes there is an API to modify the vSwitch configuration but I don't believe this is the case with this option and on standard vSwitch

    =========================================================================

    William Lam

    VMware vExpert 2009

    VMware ESX/ESXi scripts and resources at:

    Twitter: @lamw

    VMware Code Central - Scripts/Sample code for Developers and Administrators

    VMware Developer Comuunity

    If you find this information useful, please award points for "correct" or "helpful".