[oe] [meta-networking][PATCH:V3] vlan: Add vlan recipe

lei yang yanglei.fage at gmail.com
Fri Jun 28 03:39:34 UTC 2013


On Thu, Jun 27, 2013 at 8:38 PM, Joe MacDonald
<Joe.MacDonald at windriver.com>wrote:

> [Re: [oe] [meta-networking][PATCH:V3] vlan: Add vlan recipe] On 13.06.27
> (Thu 12:00) Paul Barker wrote:
>
> > On 27 June 2013 10:51,  <lei.yang at windriver.com> wrote:
> > > From: Lei Yang <lei.yang at windriver.com>
> > >
> > > A 802.1q vlan support program,which can be used by virt-test
> > >
> > > Signed-off-by: Lei Yang <lei.yang at windriver.com>
> >
> > Just took a quick look at this out of interest. What's using the
> > vconfig program once it's installed on the target?
> >
> > vlan-1.9 was released in 2005 and there hasn't been an update since.
> > The ArchWiki suggests that the modern 'ip' command can do what vconfig
> > used to do (https://wiki.archlinux.org/index.php/VLAN).
> >
> > If we can avoid a dependency on such legacy code that would probably
> > be good. Though I may be missing something as I haven't followed all
> > the discussion around this patch and I don't know your use case.
>
> That's a good point.  Seeing something like this hasn't changed since
> 2005 is a little concerning, but frankly I'm not completely shocked when
> I find out some piece of networking infrastructure has stabilized to the
> point where it isn't undergoing much development anymore.  Particularly
> if it's something not everyone uses (and sometimes even if it is:
> http://comments.gmane.org/gmane.linux.network/238858).
>
> That said, I remember vconfig coming up a bit when I was working with
> the CGL workgroup and at the time we'd thought that ip was able to do
> everything vconfig was doing, but we were looking at it in the more
> narrow context of the requirements definition.
>
> So I guess my question is the same, is there even a use-case for vlan
> now that cannot be addressed by existing, already integrated tools?
> Lei?  Your comment is specifically saying "can be used by virt-test",
> does that mean that virt-test (or something else in meta-virtualization)
> requires vconfig to do 802.1q testing or simply that it hasn't been
> ported to use other tools (like ip)?
>
>
Yes, it use vconfig not ip, I can post the log fragment in virt-test


/usr/bin/qemu-kvm -name 'vm2' -nodefaults -vga std -monitor
unix:'/tmp/monitor-humanmonitor1-20120315-015344-Damx',server,nowait
-serial unix:'/tmp/serial-20120315-015344-Damx',server,nowait -device
ich9-usb-uhci1,id=usb1 -drive
file='/root/test.img.qcow2',index=0,if=scsi,cache=none,snapshot=on -device
e1000,netdev=idxcDeLE,mac='9a:18:1b:f3:d1:c6',id='id6KMAxt' -netdev
tap,id=idxcDeLE,fd=22 -m 1024 -smp 2 -device
usb-tablet,id=usb-tablet1,bus=usb1.0 -kernel '/root/kernel.guest.nic'
-nographic  -append 'root=/dev/sda2 rw console=ttyS0,115200 ip=dhcp'
01:53:45 DEBUG| VM appears to be alive with PID 9021
01:53:45 DEBUG| (monitor humanmonitor1) Sending command 'info cpus'
01:53:45 DEBUG| (monitor humanmonitor1) Response to 'info cpus'
01:53:45 DEBUG| (monitor humanmonitor1)    * CPU #0: pc=0x00000000000ca1eb
thread_id=9024
01:53:45 DEBUG| (monitor humanmonitor1)      CPU #1: pc=0x00000000000f6404
(halted) thread_id=9025
01:53:45 DEBUG| Starting screendump thread
01:53:45 DEBUG| Attempting to log into 'vm1' (timeout 360s)
01:53:45 DEBUG| No DHCP lease for MAC 9a:18:1b:f3:76:58
01:54:04 DEBUG| (address cache) DHCP lease OK: 00:15:17:bb:5e:88 -->
128.224.165.205
01:54:21 DEBUG| (address cache) DHCP lease OK: 9a:18:1b:f3:76:58 -->
128.224.165.252
01:54:21 DEBUG| Login command: 'ssh -o UserKnownHostsFile=/dev/null -o
PreferredAuthentications=password -p 22 root at 128.224.165.252'
01:54:23 INFO | Logged in
01:54:23 DEBUG| Sending command: ifconfig -a
01:54:23 DEBUG| Sending command: dd if=/dev/urandom of=file bs=1024k
count=10
01:54:24 DEBUG| Sending command: echo $?
01:54:25 DEBUG| Sending command: md5sum file
01:54:25 DEBUG| Sending command: echo $?
01:54:25 DEBUG| Sending command: /etc/init.d/iptables stop
01:54:25 DEBUG| Sending command: modprobe 8021q
01:54:25 DEBUG| Sending command: echo $?
01:54:25 DEBUG| Attempting to log into 'vm2' (timeout 360s)
01:54:25 DEBUG| No DHCP lease for MAC 9a:18:1b:f3:d1:c6
01:54:29 DEBUG| (address cache) DHCP lease OK: 9a:18:1b:f3:d1:c6 -->
128.224.165.247
01:54:29 DEBUG| Login command: 'ssh -o UserKnownHostsFile=/dev/null -o
PreferredAuthentications=password -p 22 root at 128.224.165.247'
01:54:31 INFO | Logged in
01:54:31 DEBUG| Sending command: ifconfig -a
01:54:31 DEBUG| Sending command: dd if=/dev/urandom of=file bs=1024k
count=10
01:54:33 DEBUG| Sending command: echo $?
01:54:33 DEBUG| Sending command: md5sum file
01:54:33 DEBUG| Sending command: echo $?
01:54:33 DEBUG| Sending command: /etc/init.d/iptables stop
01:54:33 DEBUG| Sending command: modprobe 8021q
01:54:33 DEBUG| Sending command: echo $?
01:54:34 DEBUG| Sending command: vconfig add eth0 1
01:54:34 DEBUG| Sending command: echo $?
01:54:34 DEBUG| Sending command: ifconfig eth0.1 192.168.1.1
01:54:34 DEBUG| Sending command: echo $?
01:54:34 DEBUG| Sending command: vconfig add eth0 2
01:54:34 DEBUG| Sending command: echo $?
01:54:34 DEBUG| Sending command: ifconfig eth0.2 192.168.2.1
01:54:34 DEBUG| Sending command: echo $?
01:54:34 DEBUG| Sending command: vconfig add eth0 3



> --
> -Joe MacDonald.
> :wq
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
>



More information about the Openembedded-devel mailing list