]> git.proxmox.com Git - ovs.git/commit - tests/test-ovn.c
ovn: Add address set support.
authorRussell Bryant <russell@ovn.org>
Tue, 28 Jun 2016 08:50:40 +0000 (14:20 +0530)
committerBen Pfaff <blp@ovn.org>
Sun, 3 Jul 2016 03:30:19 +0000 (20:30 -0700)
commit2c5cbb15ff5231858df2608e8cd7ac46ff6bd78c
tree2f39f456e7f20089ef7d8ee9595614c46f138f0a
parenteff49a5620ec29b75359ada9513ddfb0bc13274b
ovn: Add address set support.

Update the OVN expression parser to support address sets.  Previously,
you could have a set of IP or MAC addresses in this form:

    {addr1, addr2, ..., addrN}

This patch adds support for a bit of indirection where we can define a
set of addresses and refer to them by name.

    $name

This '$name' can be used in the expresssions like

    {addr1, addr2, $name, ... }
    {$name}
    $name

A future patch will expose the ability to define address sets for use.

Signed-off-by: Russell Bryant <russell@ovn.org>
Co-authored-by: Babu Shanmugam <bschanmu@redhat.com>
Signed-off-by: Babu Shanmugam <bschanmu@redhat.com>
[blp@ovn.org made numerous small changes]
Signed-off-by: Ben Pfaff <blp@ovn.org>
ovn/controller/lflow.c
ovn/lib/actions.c
ovn/lib/expr.c
ovn/lib/expr.h
ovn/lib/lex.c
ovn/lib/lex.h
tests/ovn.at
tests/test-ovn.c