I am running a switch test Switch Test on real environment with one openvswitch and real sdn switch.
I created a bridge on openvswitch and added ports (ex. eth0, eht1). But I want to know logical port numbers (like 1, 2) which command gives me correct information. ovs-ofctl show bridge s1
shows
1(eth3): mac address etc
2(eth4):
5(eth5):
and ovs-dpctl show
port 2: eth3
port 3: eth4
port 4: eth5
But results are not showing proper mapping of physical to logical ports. Observer eth5
in both cases for ofctl
it gives 5 and for dpctl
it gives 4. Is there any way to get correct port id's.
I personally feel both these commands are not giving correct port ids. To isolate this scenario. On Mininet I created 2 openvswitchs and run dpctl
command as above it gives me 1,2,3,4,5,6 as port numbers but I am not able to run the test with these port numbers. For both switches I used 1,2,3 test executes successfully. What I mean it, if I give 1,2,3 port numbers for one switch and 4,5,6 for another switch tests doesn't execute. Any help is much appreciated.
You can use this command to specify the ofport of the port you are adding in the bridge: