qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Status of query-netdev QMP command


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] Status of query-netdev QMP command
Date: Tue, 19 Jun 2012 12:03:20 +0100

On Tue, Jun 19, 2012 at 11:53 AM, Roger Pau Monne <address@hidden> wrote:
> Stefan Hajnoczi wrote:
>>
>> On Mon, Jun 18, 2012 at 3:19 PM, Roger Pau Monne<address@hidden>
>>  wrote:
>>>
>>> I've read from the GSoC/2010 that some work was being done creating a
>>> query-netdev QMP command:
>>>
>>> http://wiki.qemu.org/Google_Summer_of_Code_2010/QMP#query-netdev
>>>
>>> The status says that "mentor has merged it into his tree", but I cannot
>>> see
>>> this command anywhere upstream, and it will come really handy for what
>>> I'm
>>> trying to do, do someone know where this has gone?
>>
>>
>> I checked qemu.git/master and don't see it either.  The HMP "info net"
>> command lists the net devices but I'm not aware of a QMP equivalent.
>> What are you trying to do?
>
>
> On Linux you can pass the name of the tap device you wish to create, and
> Qemu honors that, but on BSD systems you have no way of creating a tap
> device with a specific name, they are assigned based on the lowest free
> number (tap2 for example).
>
> I need the query-netdev command in order to get the name of the device that
> Qemu creates, so I can use it in my scripts afterwards.

Can you use -netdev tap,script=mycallback.sh to do that?  It gets
passed the interface name as argv[1].

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]