[ovs-dev] Handling "Port Shutdown" message

Ben Pfaff blp at nicira.com
Wed Oct 7 15:07:42 UTC 2015

On Wed, Oct 07, 2015 at 11:21:05AM +0530, tech_kals Kals wrote:
>   Assume when any Openflow agent uses OVS openflow stack to interact with
> the controller. When port is configured admin down in the hardware.
> Openflow agent wants to inform the controller about the port shut hence it
> will send port shutdown message to OVS. It is the responsibility of OVS to
> send the same message to Controller.
>   In OVS code, i dont see, port shutdown message is not being handled.
>   In the code, Openflow agent would call any of the function pointer which
> is defined in ofproto_dpif_class.
>   In ofproto_dpif_class, "port_reconfigured" is handling port shutdown
> event. The same function needs to inform the controller about port shutdown.
>   But, the definition of it says that it will not handle, i have
> highlighted the same. Please note that "*OFPUTIL_PC_PORT_DOWN"* is being
> used to set/unset the flag when port is configured as admin down.

Why all this speculation?  Test it and see.

More information about the dev mailing list