diff options
author | Justin Pettit <jpettit@nicira.com> | 2013-02-01 00:11:32 -0800 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2013-02-01 13:53:26 -0800 |
commit | 146356e958188ef0a9f32e66e674fee2cf669102 (patch) | |
tree | d0e2fb0eaee06a700ae1522bc8143ce6323223da /lib | |
parent | 80af5ee5a526706a80dc772d5d79b7894771b4be (diff) |
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 <jpettit@nicira.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ofp-parse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index 6f35c127..cfcf5bf0 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -914,7 +914,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. */ |