On Mon, Mar 14, 2016 at 1:35 PM, Ryan Moats <rmo...@us.ibm.com> wrote:
> From: RYAN D. MOATS <rmo...@us.ibm.com> > > Allows for auto detection and reconnect if the ovn-remote needs > to change. ovn-controller test case updated to include testing > this code > > Signed-off-by: RYAN D. MOATS <rmo...@us.ibm.com> > --- > ovn/controller/ovn-controller.c | 12 ++++++++++++ > tests/ovn-controller.at | 16 ++++++++++++++++ > 2 files changed, 28 insertions(+), 0 deletions(-) > > diff --git a/ovn/controller/ovn-controller.c > b/ovn/controller/ovn-controller.c > index 5852e35..2d94342 100644 > --- a/ovn/controller/ovn-controller.c > +++ b/ovn/controller/ovn-controller.c > @@ -342,6 +342,18 @@ main(int argc, char *argv[]) > if (should_service_stop()) { > exiting = true; > } > + /* Check OVN SB database. */ > + char *new_ovnsb_remote = get_ovnsb_remote(ovs_idl_loop.idl); > + if (strcmp(ovnsb_remote, new_ovnsb_remote)) { > + free (ovnsb_remote); > + ovnsb_remote = new_ovnsb_remote; > + ovsdb_idl_restroy(ovnsb_idl_loop.idl); > I suspect this doesn't compile. -- Russell Bryant _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev