[ovs-dev] [PATCH v3 10/11] lib/ofp-actions: Warn about deprecated actions.
Jarno Rajahalme
jrajahalme at nicira.com
Wed Oct 23 19:53:05 UTC 2013
Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
---
lib/ofp-actions.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c
index 1ec6888..0eb57be 100644
--- a/lib/ofp-actions.c
+++ b/lib/ofp-actions.c
@@ -1091,6 +1091,24 @@ ofpact_from_openflow11(const union ofp_action *a, enum ofp_version version,
return error;
}
+ if (version >= OFP12_VERSION) {
+ switch ((int)code) {
+ case OFPUTIL_OFPAT11_SET_VLAN_VID:
+ case OFPUTIL_OFPAT11_SET_VLAN_PCP:
+ case OFPUTIL_OFPAT11_SET_DL_SRC:
+ case OFPUTIL_OFPAT11_SET_DL_DST:
+ case OFPUTIL_OFPAT11_SET_NW_SRC:
+ case OFPUTIL_OFPAT11_SET_NW_DST:
+ case OFPUTIL_OFPAT11_SET_NW_TOS:
+ case OFPUTIL_OFPAT11_SET_NW_ECN:
+ case OFPUTIL_OFPAT11_SET_TP_SRC:
+ case OFPUTIL_OFPAT11_SET_TP_DST:
+ VLOG_WARN_RL(&rl, "Deprecated action %s received over %s",
+ ofputil_action_name_from_code(code),
+ ofputil_version_to_string(version));
+ }
+ }
+
switch (code) {
case OFPUTIL_ACTION_INVALID:
#define OFPAT10_ACTION(ENUM, STRUCT, NAME) case OFPUTIL_##ENUM:
--
1.7.10.4
More information about the dev
mailing list