diff options
author | Ben Pfaff <blp@ovn.org> | 2017-05-31 16:06:12 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-05-31 16:06:12 -0700 |
commit | 50f96b10e1c87db9fbe4df297f9b2fea13436bc0 (patch) | |
tree | 9122b84ecb6d90d0ba343f1f7b451b2db057870f /lib/nx-match.c | |
parent | 52182c5f50198d0f985b10677e47a9ac49ee709b (diff) | |
download | openvswitch-50f96b10e1c87db9fbe4df297f9b2fea13436bc0.tar.gz |
Support accepting and displaying port names in OVS tools.
Until now, most ovs-ofctl commands have not accepted names for ports, only
numbers, and have not been able to display port names either. It's a lot
easier for users if they can use and see meaningful names instead of
arbitrary numbers. This commit adds that support.
For backward compatibility, only interactive ovs-ofctl commands by default
display port names; to display them in scripts, use the new --names
option.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Tested-by: Aaron Conole <aconole@redhat.com>
Diffstat (limited to 'lib/nx-match.c')
-rw-r--r-- | lib/nx-match.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nx-match.c b/lib/nx-match.c index 5d8aac571..490270a29 100644 --- a/lib/nx-match.c +++ b/lib/nx-match.c @@ -1260,7 +1260,7 @@ nx_format_mask_tlv(struct ds *ds, enum mf_field_id id, if (!is_all_ones(mask, mf->n_bytes)) { ds_put_char(ds, '='); - mf_format(mf, mask, NULL, ds); + mf_format(mf, mask, NULL, NULL, ds); } ds_put_char(ds, ','); |