Action "flags.loopback" is introduced recently, but symtab in test-ovn doesn't recognize it yet. This may cause action parsing test broken. This patch fixes that.
Signed-off-by: Zong Kai LI <zealo...@gmail.com> --- tests/test-ovn.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test-ovn.c b/tests/test-ovn.c index acb6a99..ce1e262 100644 --- a/tests/test-ovn.c +++ b/tests/test-ovn.c @@ -29,6 +29,7 @@ #include "ovn/actions.h" #include "ovn/expr.h" #include "ovn/lex.h" +#include "ovn/lib/logical-fields.h" #include "ovn/lib/ovn-dhcp.h" #include "ovs-thread.h" #include "ovstest.h" @@ -146,6 +147,12 @@ create_symtab(struct shash *symtab) expr_symtab_add_string(symtab, "inport", MFF_REG14, NULL); expr_symtab_add_string(symtab, "outport", MFF_REG15, NULL); + /* Flags used in logical to physical transformation. */ + expr_symtab_add_field(symtab, "flags", MFF_LOG_FLAGS, NULL, false); + char flags_str[16]; + snprintf(flags_str, sizeof flags_str, "flags[%d]", MLF_ALLOW_LOOPBACK_BIT); + expr_symtab_add_subfield(symtab, "flags.loopback", NULL, flags_str); + expr_symtab_add_field(symtab, "xxreg0", MFF_XXREG0, NULL, false); expr_symtab_add_field(symtab, "xxreg1", MFF_XXREG1, NULL, false); -- 1.9.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev