On Wed, Jun 24, 2009 at 10:52:17AM -0700, David Lutterkort wrote: > On Wed, 2009-06-24 at 18:22 +0100, Daniel P. Berrange wrote: > > On Wed, Jun 24, 2009 at 10:20:00AM -0700, David Lutterkort wrote: > > > On Tue, 2009-06-23 at 21:47 +0100, Daniel P. Berrange wrote: > > > > Why would we ever have duplicate MAC addresses? > > > > > > VLANs: > > > > > > # vconfig add eth0 42 > > > # cat /sys/class/net/eth0.42/address > > > 00:15:58:81:5b:0e > > > # cat /sys/class/net/eth0/address > > > 00:15:58:81:5b:0e > > > > Ok, so for the libvirt API we should define that the lookup-by-mac API > > will not return VLAN devices, since we cant provide a 1-1 lookup there > > Why would you do that ? When the user asks for interfaces with a MAC, > you don't know if they are looking for a VLAN or base device. If they > want the VLAN, how would they look that up ?
By name, or by listing all devices. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| _______________________________________________ netcf-devel mailing list netcf-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/netcf-devel