From: Justin Pettit Date: Fri, 1 Feb 2013 08:11:32 +0000 (-0800) Subject: ofp-parse: Ignore "idle_age" and "hard_age" when parsing a flow string. X-Git-Tag: v1.9.0~6 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=b93bd611bd4217b6cf21c657c1402a739131a44b ofp-parse: Ignore "idle_age" and "hard_age" when parsing a flow string. It should be possible to feed to output of "ovs-ofctl dump-flows" to "ovs-ofctl add-flows". However, some of the metadata needs to be ignored. "idle_age" and "hard_age" was recently added to the output of "ovs-ofctl dump-flows", but they were not ignored like the other metadata. This commit ignores them. Signed-off-by: Justin Pettit --- diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index 1d5b7eaa9..3c3d255f2 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -893,7 +893,9 @@ parse_ofp_str(struct ofputil_flow_mod *fm, int command, const char *str_, parse_field(mf_from_name(name), value, &fm->match); } else if (!strcmp(name, "duration") || !strcmp(name, "n_packets") - || !strcmp(name, "n_bytes")) { + || !strcmp(name, "n_bytes") + || !strcmp(name, "idle_age") + || !strcmp(name, "hard_age")) { /* Ignore these, so that users can feed the output of * "ovs-ofctl dump-flows" back into commands that parse * flows. */