mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
ofp-print: Print out_port field in "flow_mod"s.
Somehow we've overlooked this for a long time. I guess that feature doesn't get used very much. Also updates the test output for OFPT_FLOW_MOD to include the out_port output and adds out_port to the NXT_FLOW_MOD tests. Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -753,6 +753,11 @@ ofp_print_flow_mod(struct ds *s, const struct ofp_header *oh,
|
||||
if (fm.buffer_id != UINT32_MAX) {
|
||||
ds_put_format(s, "buf:0x%"PRIx32" ", fm.buffer_id);
|
||||
}
|
||||
if (fm.out_port != OFPP_NONE) {
|
||||
ds_put_format(s, "out_port:");
|
||||
ofputil_format_port(fm.out_port, s);
|
||||
ds_put_char(s, ' ');
|
||||
}
|
||||
if (fm.flags != 0) {
|
||||
uint16_t flags = fm.flags;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user