diff mbox series

[ovs-dev,02/10] ofp-actions: Make decap action format output match parsed input.

Message ID 20190430232728.31093-2-blp@ovn.org
State New
Headers show
Series [ovs-dev,01/10] ofp-actions: Make encap action really require OF1.3+. | expand

Commit Message

Ben Pfaff April 30, 2019, 11:27 p.m. UTC
The action expects 'type' as a parameter name so it should use 'type' when
it formats actions too.

Signed-off-by: Ben Pfaff <blp@ovn.org>
---
 lib/ofp-actions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c
index 182277da85cb..c2cef769e839 100644
--- a/lib/ofp-actions.c
+++ b/lib/ofp-actions.c
@@ -4625,7 +4625,7 @@  format_DECAP(const struct ofpact_decap *a,
 {
     ds_put_format(fp->s, "%sdecap(%s", colors.paren, colors.end);
     if (a->new_pkt_type != htonl(PT_USE_NEXT_PROTO)) {
-        ds_put_format(fp->s, "packet_type(ns=%"PRIu16",id=%#"PRIx16")",
+        ds_put_format(fp->s, "packet_type(ns=%"PRIu16",type=%#"PRIx16")",
                       pt_ns(a->new_pkt_type),
                       pt_ns_type(a->new_pkt_type));
     }