On Aug 8, 2012, at 3:53 PM, dennis jenkins wrote:
How would one specify VLAN trunk mode with only one vlan tag
present?
Actually, this is a deficiency with the model below, it isn't possible. I had
thought
of using "vlantag=<tag>" for access ports, and
"vlantrunk=<tags>" for trunks, but
was hoping to simplify things. Would the 2 different parameter approach be
better? What do others think?
Thanks,
Kyle
On Wed, Aug 8, 2012 at 2:47 PM, Kyle Mestery
<kmestery(a)cisco.com> wrote:
> With this change, it is now possible to support VLANs (both access and trunks)
> for openvswitch ports in libvirt. This also takes into account the profileid
> parameter, as the vlantag parameter is also optional.
>
> Examples of this configuration are below.
>
> Setup the port as an access port:
>
> <interface type='bridge'>
> <mac address='52:54:00:30:23:a6'/>
> <source bridge='data-br'/>
> <virtualport type='openvswitch'>
> <parameters interfaceid='cdbbbc31-b7fe-16ca-a715-cc7cc76e18b2'
vlantag='70'/>
> </virtualport>
> <model type='virtio'/>
> <address type='pci' domain='0x0000' bus='0x00'
slot='0x03' function='0x0'/>
> </interface>
>
> Setup the port as an trunk port:
>
> <interface type='bridge'>
> <mac address='52:54:00:30:23:a6'/>
> <source bridge='data-br'/>
> <virtualport type='openvswitch'>
> <parameters interfaceid='cdbbbc31-b7fe-16ca-a715-cc7cc76e18b2'
vlantag='70,71,72'/>
> </virtualport>
> <model type='virtio'/>
> <address type='pci' domain='0x0000' bus='0x00'
slot='0x03' function='0x0'/>
> </interface>
>
> src/conf/netdev_vport_profile_conf.c | 34 ++++++++++++++++++++++++++++++----
> src/util/virnetdevopenvswitch.c | 23 +++++++++++++++++++++--
> src/util/virnetdevvportprofile.h | 2 ++
> 3 files changed, 53 insertions(+), 6 deletions(-)
>
> --
> 1.7.11.2
>
> --
> libvir-list mailing list
> libvir-list(a)redhat.com
>
https://www.redhat.com/mailman/listinfo/libvir-list
--
libvir-list mailing list
libvir-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list