[ovs-discuss] Any command to show mapping between OVS port - interface - int's "ofport" attribute?

Ben Pfaff blp at nicira.com
Mon Jan 21 22:04:05 UTC 2013


On Mon, Jan 21, 2013 at 04:59:42PM -0500, Willard Dennis wrote:
>  Hi all,
> 
> So I know that OVF ports have 1-to-<n> associated interfaces, and that
> interfaces have a numerical "ofport" ID, as well as "external_ids"
> which includes the attached MAC address (if any.) For some of the
> stuff we are doing it would be great to have a command that when run
> against a given bridge, would produce output like:
> 
> Port          Interface          OF-port          Attchd-MAC
> -----          ------------          -----------          ----------------
> vnet0       vnet0                1                     52:54:00:AA:BB:CC
> vnet1       vnet1                15                   52:54:00:11:22:33
> br0           br0                    65534
> (...etc...)
> 
> My question is, does anyone out there already have something like this
> yet? (I know 'ovs-vsctl show interface <xxxxx>' has most of this
> detail ,but only for the one interface... Would like the columnar
> output, and for all ports/interfaces on the bridge.)

You can get some of what you want with:
        ovs-vsctl -f table -- --columns=name,ofport,external-ids list interface



More information about the discuss mailing list