Re: [ovs-discuss] Display OpenFlow port number, interface name and bridge name in single OvS CLI command

2020-07-30 Thread Matteo Olivi
Thanks.

That indeed works, but I was looking for a single ovs command.
Is there a way to get what I want with just one command?

Regards,
Matteo.

On Tue, Jul 28, 2020 at 10:05 PM Tony Liu  wrote:

>
> for p in $(ovs-vsctl list-ports br-int); do \
> ovs-vsctl -f table --columns=ofport,name list interface $p; \
> done
>
> Tony
> --
> *From:* discuss  on behalf of Matteo
> Olivi 
> *Sent:* July 28, 2020 11:14 AM
> *To:* ovs-discuss@openvswitch.org 
> *Subject:* [ovs-discuss] Display OpenFlow port number, interface name and
> bridge name in single OvS CLI command
>
> Hello everyone,
> I have an OvS bridge *X *and some network interfaces connected to it via
> OpenFlow ports.
> For each interface connected to *X*, I want to display the name and the
> number of its OpenFlow port.
> I've been using the following command:
> "ovs-vsctl -f table -- --columns=ofport,name list Interface"
>
> The problem with the command above is that it lists the interface name and
> OpenFlow port
> number for the interfaces connected to all the bridges on the host, while
> I only want the interfaces
> connected to bridge *X*. Is there a single command to obtain what I need?
> Or, is there a single
> database table where rows store the information that I need, i.e. the
> triplet (bridge name, interface name, OpenFlow port number) ?
>
> Thanks,
> Matteo.
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Display OpenFlow port number, interface name and bridge name in single OvS CLI command

2020-07-28 Thread Tony Liu

for p in $(ovs-vsctl list-ports br-int); do \
ovs-vsctl -f table --columns=ofport,name list interface $p; \
done

Tony

From: discuss  on behalf of Matteo Olivi 

Sent: July 28, 2020 11:14 AM
To: ovs-discuss@openvswitch.org 
Subject: [ovs-discuss] Display OpenFlow port number, interface name and bridge 
name in single OvS CLI command

Hello everyone,
I have an OvS bridge X and some network interfaces connected to it via OpenFlow 
ports.
For each interface connected to X, I want to display the name and the number of 
its OpenFlow port.
I've been using the following command:
"ovs-vsctl -f table -- --columns=ofport,name list Interface"

The problem with the command above is that it lists the interface name and 
OpenFlow port
number for the interfaces connected to all the bridges on the host, while I 
only want the interfaces
connected to bridge X. Is there a single command to obtain what I need? Or, is 
there a single
database table where rows store the information that I need, i.e. the triplet 
(bridge name, interface name, OpenFlow port number) ?

Thanks,
Matteo.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] Display OpenFlow port number, interface name and bridge name in single OvS CLI command

2020-07-28 Thread Matteo Olivi
Hello everyone,
I have an OvS bridge *X *and some network interfaces connected to it via
OpenFlow ports.
For each interface connected to *X*, I want to display the name and the
number of its OpenFlow port.
I've been using the following command:
"ovs-vsctl -f table -- --columns=ofport,name list Interface"

The problem with the command above is that it lists the interface name and
OpenFlow port
number for the interfaces connected to all the bridges on the host, while I
only want the interfaces
connected to bridge *X*. Is there a single command to obtain what I need?
Or, is there a single
database table where rows store the information that I need, i.e. the
triplet (bridge name, interface name, OpenFlow port number) ?

Thanks,
Matteo.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss