diff options
author | Ben Pfaff <blp@nicira.com> | 2011-08-09 09:24:18 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-08-09 09:24:18 -0700 |
commit | 299016266ed13376a7d671f66d4e0181b41098e3 (patch) | |
tree | c57bdaf9dacc3102079e9f04db5bd0486f039210 /lib/ofp-print.c | |
parent | 0697b5c3c9954057028f406757c4fd0208b929b9 (diff) |
New action NXAST_RESUBMIT_TABLE.
This makes multiple table support in ofproto-dpif useful, by allowing
resubmits into tables other than 0.
Diffstat (limited to 'lib/ofp-print.c')
-rw-r--r-- | lib/ofp-print.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 0265f301..9311c14f 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -295,6 +295,19 @@ ofp_print_action(struct ds *s, const union ofp_action *a, ofp_print_port_name(s, ntohs(nar->in_port)); break; + case OFPUTIL_NXAST_RESUBMIT_TABLE: + nar = (struct nx_action_resubmit *)a; + ds_put_format(s, "resubmit("); + if (nar->in_port != htons(OFPP_IN_PORT)) { + ofp_print_port_name(s, ntohs(nar->in_port)); + } + ds_put_char(s, ','); + if (nar->table != 255) { + ds_put_format(s, "%"PRIu8, nar->table); + } + ds_put_char(s, ')'); + break; + case OFPUTIL_NXAST_SET_TUNNEL: nast = (struct nx_action_set_tunnel *)a; ds_put_format(s, "set_tunnel:%#"PRIx32, ntohl(nast->tun_id)); |