This series librarizes the common code for database command in ovs-vsctl, vtep-ctl into a new module, db-ctl-base (may not be a good name). The effect of code reduction can be observed from patch: vtep-ctl: Use db-ctl-base. Moreover, the new library will help with writing ovn-sbctl and with modifying ovn-nbctl code.
Alex Wang (7): ovs-vsctl: Simplify code. db-ctl-base: Make common database command code into library. db-ctl-base: Librarize code in parse_options(). db-ctl-base: Librarize show command. db-ctl-base: Librarize database command manual. vtep-ctl: Use db-ctl-base. db-ctl-base: Improve show command. lib/automake.mk | 3 + lib/db-ctl-base.c | 2072 ++++++++++++++++++++++++++++++++++++ lib/db-ctl-base.h | 258 +++++ lib/db-ctl-base.man | 267 +++++ manpages.mk | 4 + tests/ovs-vsctl.at | 2 +- tests/vtep-ctl.at | 24 + utilities/ovs-vsctl.8.in | 259 +---- utilities/ovs-vsctl.c | 2643 ++++++---------------------------------------- vtep/vtep-ctl.8.in | 227 +--- vtep/vtep-ctl.c | 2526 ++++++++------------------------------------ 11 files changed, 3434 insertions(+), 4851 deletions(-) create mode 100644 lib/db-ctl-base.c create mode 100644 lib/db-ctl-base.h create mode 100644 lib/db-ctl-base.man -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev