Re: [ovs-dev] From Openflow port number to hardware port number

2011-08-24 Thread Bibrak Qamar
Thanks Justin for the clarification. So is it possible to query the interface and its corresponding openflow port from /ofproto/ofproto.c some where in add_flow(struct ofconn *ofconn, struct flow_mod *fm). I am trying to write a function to achieve this, by copying all the relevant logic from ov

Re: [ovs-dev] From Openflow port number to hardware port number

2011-08-23 Thread Justin Pettit
The confusion on our end is that what you call a hardware port number, we consider to be just the interface name (e.g., "eth0" on Linux). What platform is this? I haven't seen that naming convention. If you want to script it, one option is to query the config database with the following:

Re: [ovs-dev] From Openflow port number to hardware port number

2011-08-23 Thread Bibrak Qamar
/ # ./openvswitch/utilities/ovs-ofctl show br0 --> gives the following result 1(p1): addr:00:00:00:00:00:01, config: 0, state:0x1 current:1GB-FD COPPER advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-HD 1GB-FD supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-HD 1GB-FD 2(p4)

Re: [ovs-dev] From Openflow port number to hardware port number

2011-08-23 Thread Ben Pfaff
On Wed, Aug 24, 2011 at 10:10:01AM +0500, Bibrak Qamar wrote: > ovs-ofctl show br0 --- > Shows list of ports with their OVS port number and > Hardware port number. Is there any simple way (may be a function) to convert > ovs port number to its corresponding hardware port number and vise versa . Ca

[ovs-dev] From Openflow port number to hardware port number

2011-08-23 Thread Bibrak Qamar
Hello all, ovs-ofctl show br0 --- > Shows list of ports with their OVS port number and Hardware port number. Is there any simple way (may be a function) to convert ovs port number to its corresponding hardware port number and vise versa . Bibrak NUST-School of Electrical Engineering and Computer