Re: [ovs-discuss] Command to get port name and port id mapping

2015-07-01 Thread Ben Pfaff
On Tue, Jun 30, 2015 at 09:48:12AM -0700, Xuemei Liu wrote: > I want to generate forwarding rules for ovs, and need to get the port id > (0, 1, ...) at the ovs from the port name (eth0, ...). I tried ovs-vsctl > show, ovs-dpctl show, but they don't show the port id. Could anyone tell me > the comm

Re: [ovs-discuss] Command to get port name and port id mapping

2015-06-30 Thread Justin Pettit
As mentioned in the ovs-appctl man page, you have to look at the man page for the daemon: Open vSwitch daemons accept certain commands at runtime to control their behavior and query their settings. Every daemon accepts a common set of commands documented under COMMON

Re: [ovs-discuss] Command to get port name and port id mapping

2015-06-30 Thread Xuemei Liu
Hi, Justin, Thanks for providing these commands, and "ovs-appctl dpif/show" works perfect for me. However, I cannot find that command on http://openvswitch.org/support/dist-docs/ovs-appctl.8.txt or http://manpages.ubuntu.com/manpages/precise/man8/ovs-appctl.8.html. Thus, how do you know the comman

Re: [ovs-discuss] Command to get port name and port id mapping

2015-06-30 Thread Xuemei Liu
Hi, Alex, Thanks for response. I tried that command before, no port number is shown. On Tue, Jun 30, 2015 at 9:50 AM, Alex Wang wrote: > > > On Tue, Jun 30, 2015 at 9:48 AM, Xuemei Liu wrote: > >> Hi, >> >> I want to generate forwarding rules for ovs, and need to get the port id >> (0, 1, ...)

Re: [ovs-discuss] Command to get port name and port id mapping

2015-06-30 Thread Justin Pettit
It's in quite a few places. The way people usually get it is from the "ofport" column of the Interface table in the database. You can see it by running "ovs-vsctl list interface". You can also run "ovs-appctl dpif/show" which will show you both the OpenFlow port number as well as the datapath

Re: [ovs-discuss] Command to get port name and port id mapping

2015-06-30 Thread Alex Wang
On Tue, Jun 30, 2015 at 9:48 AM, Xuemei Liu wrote: > Hi, > > I want to generate forwarding rules for ovs, and need to get the port id > (0, 1, ...) at the > Assume you are talking about OpenFlow flows, then please use 'ovs-ofctl show ' > ovs from the port name (eth0, ...). I tried ovs-vsctl

[ovs-discuss] Command to get port name and port id mapping

2015-06-30 Thread Xuemei Liu
Hi, I want to generate forwarding rules for ovs, and need to get the port id (0, 1, ...) at the ovs from the port name (eth0, ...). I tried ovs-vsctl show, ovs-dpctl show, but they don't show the port id. Could anyone tell me the commands to implement this task? Thanks, Xuemei Liu __