[ovs-dev] [ovn 1/6] ovn-controller: Make integration bridge config part of general context.

Ben Pfaff blp at nicira.com
Tue Apr 28 21:56:07 UTC 2015


On Mon, Apr 27, 2015 at 10:14:46PM -0700, Justin Pettit wrote:
> The integration bridge will be needed by other components soon, so make
> it part of the general ovn-controller context.
> 
> Signed-off-by: Justin Pettit <jpettit at nicira.com>

This solves a problem I had too, and I like your solution better.
Thanks.

It seems a little harsh to have the daemon die if the integration bridge
disappears.  I would expect the daemon to wait for it to reappear.  If
that's difficult now, that's fine with me, if you agree that it's not
the desirable long-term behavior (and add a comment?).

This change isn't really necessary, since the compiler will initialize
everything in the struct to null or zero.  There are already several
members that we don't initialize explicitly, I assumed that
.chassis_name was just there to suppress compiler warnings:

    @@ -111,11 +141,11 @@ try_again:

     int
     main(int argc, char *argv[])
     {
         struct unixctl_server *unixctl;
    -    struct controller_ctx ctx = { .chassis_name = NULL };
    +    struct controller_ctx ctx = { .chassis_name = NULL, .br_int_name = NULL };
         bool exiting;
         int retval;

         ovs_cmdl_proctitle_init(argc, argv);
         set_program_name(argv[0]);



More information about the dev mailing list