Re: [netcf-devel] [libvirt] [RFC] Reporting host interface status/statistics via netcf/libvirt, and listing active vs. inactive interfaces

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

 



On Fri, 2009-06-19 at 17:39 +0100, Daniel P. Berrange wrote:
> Here is a proposal that is a compromise between the single hierarchy, and
> completely flat. The break point is only introduced where VLANs appear,
> which is acceptable because when defining VLAns, you don't need to define
> the underlying inteface at the same time

Yes, that's what I was getting at in one of my mails yesterday. All
subordinate interfaces, except for VLAN's, are defined by including them
at the one place where they are used (e.g., inside <bridge/>); when
using a VLAN as a subordinate interface, the VLAN interface itself is
defined where it is used, but the interface underlying the VLAN
interface is only referred to.

Basically, by treating VLAN's akin to symbolic links, we do a have a
clean tree structure for interface nesting.

> There are 4 possible arrangements of physical NIC, bond and vlan,
> each of which can use a bridge. This gives 8 total configs
> 
>  1. Physical NIC
> 
>  2. Physical NIC + bridge
> 
>  3. Physical NIC + bond
> 
>  4. Physical NIC + bond + bridge
> 
>  5. Physical NIC + vlan
> 
>  6. Physical NIC + vlan + bridge
> 
>  7. Physical NIC + bond + vlan
> 
>  8. Physical NIC + bond + vlan + bridge

Agreed - these examples are in line with what I had in mind. The format
for VLAN's is a bit problematic still; you have
        
> <interface type="vlan">
>          <name>vlan42</name>
>          <vlan tag='42'>
>            <interface type='ethernet'>
>              <name>eth0</name>
>            </inteface>
>          </vlan>
>       </inteface>

but you can't really assign an arbitrary name to a VLAN interface; it's
also not necessary to indicate the type of the base interface.
Therefore, for VLAN's, I would use the much more concise notation

        <interface type="vlan" device="eth0" tag="42"/>
        
David


--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]