[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 1/1] Add vlantag parameter for openvswitch ports



On Fri, Aug 10, 2012 at 10:21 AM, Kyle Mestery (kmestery)
<kmestery cisco com> wrote:
> Those cases both look good. I think the formatting works just fine for
> virtualport type=openvswitch as well, something like this:
>
> Single VLAN (no trunk):
> <interface type='bridge'>
>  <mac address='52:54:00:30:23:a6'/>
>  <source bridge='data-br'/>
>  <vlan tag='70'/>
>  <virtualport type='openvswitch'>
>    <parameters interfaceid='cdbbbc31-b7fe-16ca-a715-cc7cc76e18b2'>
>  </virtualport>
>  <model type='virtio'/>
>  <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
> </interface>
>
> Single VLAN (trunk):
> <interface type='bridge'>
>  <mac address='52:54:00:30:23:a6'/>
>  <source bridge='data-br'/>
>  <vlan tag='70'/ trunk=yes>
>  <virtualport type='openvswitch'>
>    <parameters interfaceid='cdbbbc31-b7fe-16ca-a715-cc7cc76e18b2'>
>  </virtualport>
>  <model type='virtio'/>
>  <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
> </interface>
>
> Multiple VLANs (trunk):
> <interface type='bridge'>
>  <mac address='52:54:00:30:23:a6'/>
>  <source bridge='data-br'/>
>  <vlan trunk='yes'>
>   <tag id='70'>
>   <tag id='71'>
>  </vlan>
>  <virtualport type='openvswitch'>
>    <parameters interfaceid='cdbbbc31-b7fe-16ca-a715-cc7cc76e18b2'>
>  </virtualport>
>  <model type='virtio'/>
>  <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
> </interface>
>


I think that making "tag id=" an XML attribute in one case and an
element in another is problematic.  May I suggest just using:

<vlan [trunk='yes|no']>     <!-- if unspecified, trunk defaults to 'no' -->
  <tag id='nn'/>
  [<tag id='nn'/> ...]
</vlan>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]