Hi,
I have a few queries
regarding OVS, and it would be great if someone could
help me out with them. As I understand it, if I do:
sudo ovs-vsctl add-port
<bridge-name> eth<x> -- set interface
eth<x> ofport_request=xyz
The ofport_request
specifies a value that assigns a number to the port that
I am adding to the bridge on ovs. Hence, I would expect
`ovs-dpctl show` to show up this port number. However,
what I actually see in the output is a different port
number that seems to be auto assigned to it.
I’ll walkthrough the
commands I executed, as an example:
*************************
First, I have no bridge to
begin with:
user@OVSsetupVM3:/var/log/ovs-bugtool/bug-report-20140110070820$
sudo ovs-vsctl list-br
user@OVSsetupVM3:/var/log/ovs-bugtool/bug-report-20140110070820$
Next, I create a bridge
B1:
user@OVSsetupVM3:/var/log/ovs-bugtool/bug-report-20140110070820$
sudo ovs-vsctl add-br B1
user@OVSsetupVM3:/var/log/ovs-bugtool/bug-report-20140110070820$
sudo ovs-vsctl list-br
B1
user@OVSsetupVM3:/var/log/ovs-bugtool/bug-report-20140110070820$
ovs-dpctl show
system@ovs-system:
lookups: hit:21717
missed:3637 lost:0
flows: 2
port 0: ovs-system
(internal)
port 1: B1 (internal)
user@OVSsetupVM3:/var/log/ovs-bugtool/bug-report-20140110070820$
After that,
I add a port with ofport_request set to say, 45,
and view the ovs-dpctl output:
user@OVSsetupVM3:/var/log/ovs-bugtool/bug-report-20140110070820$
sudo ovs-vsctl add-port B1 eth0 -- set interface eth0
ofport_request=45
user@OVSsetupVM3:/var/log/ovs-bugtool/bug-report-20140110070820$
ovs-dpctl show
system@ovs-system:
lookups: hit:21717
missed:3637 lost:0
flows: 0
port 0: ovs-system
(internal)
port 1: B1 (internal)
port
2: eth0
user@OVSsetupVM3:/var/log/ovs-bugtool/bug-report-20140110070820$
What
I expected to see was :
user@OVSsetupVM3:/var/log/ovs-bugtool/bug-report-20140110070820$
ovs-dpctl show
system@ovs-system:
lookups: hit:21717 missed:3637 lost:0
flows: 0
port 0: ovs-system (internal)
port 1: B1 (internal)
port 45: eth0
user@OVSsetupVM3:/var/log/ovs-bugtool/bug-report-20140110070820$
*************************
So here are the queries
I have:
1) What is this
ofport_request actually doing? What is the valid max
value that can be provided for this attribute?
2) If I set the
controller for this bridge as my ODL controller, and
then view the port I just added, in the devices page, I
actually am able to see 45 as the port number there. So
why isn’t ovs-dpctl showing 45? Is it an ovs bug? Or
should I execute another command/option to view this
info?
Any help/pointers would
be greatly appreciated!
Thanks,
Regards,
Vijay
_______________________________________________
controller-dev mailing list
controller-dev@...https://lists.opendaylight.org/mailman/listinfo/controller-dev