X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-print.c;h=89656cc0c63010f2433595b64fac3be2e0544b04;hb=b2fda3effc787f265b5ad5dfa967ac00627bd075;hp=25258665f77da09e3c93037d673c2c404358f2b0;hpb=d84d4b88d26e3f37ce24f1d3eebe0d70ef264f73;p=sliver-openvswitch.git diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 25258665f..89656cc0c 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -834,7 +834,7 @@ ofp_print_flow_mod(struct ds *s, const struct ofp_header *oh, bool need_priority; int error; - error = ofputil_decode_flow_mod(&fm, oh); + error = ofputil_decode_flow_mod(&fm, oh, true); if (error) { ofp_print_error(s, error); return; @@ -860,6 +860,9 @@ ofp_print_flow_mod(struct ds *s, const struct ofp_header *oh, default: ds_put_format(s, "cmd:%d", fm.command); } + if (fm.table_id != 0) { + ds_put_format(s, " table_id:%d", fm.table_id); + } ds_put_char(s, ' '); if (verbosity >= 3 && code == OFPUTIL_OFPT_FLOW_MOD) { @@ -1346,6 +1349,13 @@ ofp_print_nxt_role_message(struct ds *string, } } +static void +ofp_print_nxt_flow_mod_table_id(struct ds *string, + const struct nxt_flow_mod_table_id *nfmti) +{ + ds_put_format(string, " %s", nfmti->set ? "enable" : "disable"); +} + static void ofp_print_nxt_set_flow_format(struct ds *string, const struct nxt_set_flow_format *nsff) @@ -1502,6 +1512,10 @@ ofp_to_string__(const struct ofp_header *oh, ofp_print_nxt_role_message(string, msg); break; + case OFPUTIL_NXT_FLOW_MOD_TABLE_ID: + ofp_print_nxt_flow_mod_table_id(string, msg); + break; + case OFPUTIL_NXT_SET_FLOW_FORMAT: ofp_print_nxt_set_flow_format(string, msg); break;