mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
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>
This commit is contained in:
@@ -1017,11 +1017,14 @@ const struct mf_field *ofpact_get_mf_dst(const struct ofpact *ofpact);
|
||||
uint32_t ofpacts_get_meter(const struct ofpact[], size_t ofpacts_len);
|
||||
|
||||
/* Formatting and parsing ofpacts. */
|
||||
void ofpacts_format(const struct ofpact[], size_t ofpacts_len, struct ds *);
|
||||
char *ofpacts_parse_actions(const char *, struct ofpbuf *ofpacts,
|
||||
void ofpacts_format(const struct ofpact[], size_t ofpacts_len,
|
||||
const struct ofputil_port_map *, struct ds *);
|
||||
char *ofpacts_parse_actions(const char *, const struct ofputil_port_map *,
|
||||
struct ofpbuf *ofpacts,
|
||||
enum ofputil_protocol *usable_protocols)
|
||||
OVS_WARN_UNUSED_RESULT;
|
||||
char *ofpacts_parse_instructions(const char *, struct ofpbuf *ofpacts,
|
||||
char *ofpacts_parse_instructions(const char *, const struct ofputil_port_map *,
|
||||
struct ofpbuf *ofpacts,
|
||||
enum ofputil_protocol *usable_protocols)
|
||||
OVS_WARN_UNUSED_RESULT;
|
||||
const char *ofpact_name(enum ofpact_type);
|
||||
|
Reference in New Issue
Block a user