Hi Ben,

Thanks for your response.

I want to use OVS APIs to inform the controller about port shutdown. But, I
don't find any direct API/function to do so.

For example, *ofproto_port_add() *could be called to add a port into an
openflow bridge and *ofproto_port_del() *can be called to remove a port
from Openflow bridge and in each of the scenario, the OVS will send port
add and delete message to the controller so that the controller will be
aware of it.

Now, i am bringing one of the openlow port to down state i.e. admin down.
In this case, i want to call an API/function of OVS which can inform the
controller about port state change. AFAIK, there is no *ofproto API *to
inform the controller.

Can someone guide me how to accomplish this?

I am trying to delete the port from the bridge then add it once again
whenever the port is set to admin down. But, I am suspecting this approach
might create some other issue.

Please help me on this.

Thanks,
Kals.





On Tue, Nov 3, 2015 at 10:40 PM, Ben Pfaff <b...@nicira.com> wrote:

> On Tue, Nov 03, 2015 at 04:02:59PM +0530, tech_kals Kals wrote:
> > Just want to understand how port shut message sent by OVS to the
> controller
> > when any one of the port admin state is set to down through CLI
> > command......
> >
> > As per openflow specification, when a port state is changed to down
> state,
> > the switch should send  OFPT_PORT_STATUS message to notify the controller
> > of the change.
>
> It works for me.  When I type "ifconfig eth0 down", the controllers get
> OFPT_PORT_STATUS messages.
>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to