[ovs-discuss] addition of a port in ovs switch which is not physically present
akash sharma
akashsharma.0812 at gmail.com
Thu May 16 10:39:24 UTC 2013
Thanks for the response.
It resolves my query.
Regards,
Akash
On Thu, May 16, 2013 at 2:05 PM, Justin Pettit <jpettit at nicira.com> wrote:
> Yes, this is expected. The ovs-vsctl commands you are executing are
> manipulating a database that describes the configuration you'd like. The
> other commands are retrieving the actual configuration of the system. The
> last paragraph of this FAQ entry provides some information about how to
> notice invalid ports:
>
> Q: How can I figure out the OpenFlow port number for a given port?
>
> A: The OFPT_FEATURES_REQUEST message requests an OpenFlow switch to
> respond with an OFPT_FEATURES_REPLY that, among other information,
> includes a mapping between OpenFlow port names and numbers. From a
> command prompt, "ovs-ofctl show br0" makes such a request and
> prints the response for switch br0.
>
> The Interface table in the Open vSwitch database also maps OpenFlow
> port names to numbers. To print the OpenFlow port number
> associated with interface eth0, run:
>
> ovs-vsctl get Interface eth0 ofport
>
> You can print the entire mapping with:
>
> ovs-vsctl -- --columns=name,ofport list Interface
>
> but the output mixes together interfaces from all bridges in the
> database, so it may be confusing if more than one bridge exists.
>
> In the Open vSwitch database, ofport value -1 means that the
> interface could not be created due to an error. (The Open vSwitch
> log should indicate the reason.) ofport value [] (the empty set)
> means that the interface hasn't been created yet. The latter is
> normally an intermittent condition (unless ovs-vswitchd is not
> running).
>
> --Justin
>
>
> On May 16, 2013, at 1:24 AM, akash sharma <akashsharma.0812 at gmail.com>
> wrote:
>
> > Hi,
> >
> > I want to verify that all the ports which are added to the ovs switch
> are present in the ovs list/show commands as well as the feature reply
> message from switch to the controller.
> >
> > I am adding a port to the bridge which does not exist physically.
> > After the addition of port, the added port is present in the following
> command results:
> > ovs-vsctl show
> > ovs-vsctl list interface
> > ovs-vsctl port
> >
> > But the port is not shown in the following ovs-ofctl commands:
> > ovs-ofctl show br0
> > ovs-ofctl dump-ports br0
> > ovs-ofctl dump-ports-desc br0
> >
> > Also, the feature reply message sent by the switch to the controller
> does not contain the added port.
> > It contains ports which are physically present(connected to another
> machine).
> >
> > Please confirm whether this is desired behavior or I am missing
> something.
> >
> > Regards,
> > Akash
> > _______________________________________________
> > discuss mailing list
> > discuss at openvswitch.org
> > http://openvswitch.org/mailman/listinfo/discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130516/bfc5ece2/attachment.html>
More information about the discuss
mailing list