[ovs-dev] [PATCH] ofproto: Preserve ofport number for failed ofport across restarts

Vishal Deep Ajmera vishal.deep.ajmera at ericsson.com
Fri Sep 11 09:13:43 UTC 2020

> Hi, Vishal.  I'm looking through old patches after the patchwork cleanup and
> it seems that this one in kind of undecided state.
> Does this patch still valid?
> Anyway, for the problem you described here:  Maybe it's possible to just use
> 'ofport_request' configuration option for interfaces?  It could be
> implemented
> as picking a unique ofport before adding a new port and set 'ofport_request'
> along with port creation.  Another way is to fix current ofport for 
> interfaces
> once OVS chose it, i.e. port add -> check ofport -> set 'ofport_request' 
> with
> that value.
> In any case after reboot OVS will choose exactly same ofport as it was 
> before
> because it is stored in database.
> What do you think?

Hi Ilya,

I agree that using ofp_request at the time of port creation will fix this 
However this means an orchestrator also need to manage unique port
numbers for ports it is creating on OVS. I am not sure if this is feasible for 

Also on the other hand if we overload the field ofp_request and set it to ofp 
automatically assigned by OVS, will it be misleading? However I think this 
approach is cleaner.

Warm Regards,
Vishal Ajmera

More information about the dev mailing list