2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

Deprecate referring to ports by name in ovs-ofctl.

This is a necessary step toward supporting full 32-bit OF1.1+ port numbers
in a later version of OVS.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
Ben Pfaff
2012-09-26 09:57:28 -07:00
parent d55b18c8fa
commit fd38af85a5
2 changed files with 10 additions and 9 deletions

View File

@@ -3569,9 +3569,9 @@ ofputil_port_from_string(const char *s)
ds_init(&s);
ofputil_format_port(port32, &s);
VLOG_WARN("port %u is better referred to as %s, for compatibility "
"with future versions of OpenFlow",
port32, ds_cstr(&s));
VLOG_WARN_ONCE("referring to port %s as %u is deprecated for "
"compatibility with future versions of OpenFlow",
ds_cstr(&s), port32);
ds_destroy(&s);
return port32;