]> git.proxmox.com Git - mirror_ovs.git/commit - NEWS
ovsdb-data: Add support for integer ranges in database commands
authorLukasz Rzasik <lukasz.rzasik@gmail.com>
Thu, 29 Dec 2016 22:55:46 +0000 (15:55 -0700)
committerBen Pfaff <blp@ovn.org>
Thu, 5 Jan 2017 16:48:10 +0000 (08:48 -0800)
commit1ab39058cc1fbe9b2ce48e784284fd0383d537c5
tree9ce73e573c744e65074f920111c8f27d01f312fa
parent84d0ca5d00fe01b29163236d48fa0f9105687149
ovsdb-data: Add support for integer ranges in database commands

Adding / removing a range of integers to a column accepting a set of
integers requires enumarating all of the integers. This patch simplifies
it by introducing 'range' concept to the database commands. Two integers
separated by a hyphen represent an inclusive range.

The patch adds positive and negative tests for the new syntax.
The patch was tested by 'make check'. Covarage was tested by
'make check-lcov'.

Signed-off-by: Lukasz Rzasik <lukasz.rzasik@gmail.com>
Suggested-by: <my_ovs_discuss@yahoo.com>
Suggested-by: Ben Pfaff <blp@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
AUTHORS.rst
NEWS
lib/db-ctl-base.c
lib/db-ctl-base.man
lib/ovsdb-data.c
lib/ovsdb-data.h
lib/util.c
lib/util.h
tests/ovs-vsctl.at
tests/ovsdb-data.at
tests/test-ovsdb.c