]> git.proxmox.com Git - mirror_ovs.git/commit
ovs-save: Don't always include the default flow during restore
authorTimothy Redaelli <tredaelli@redhat.com>
Sun, 9 Sep 2018 12:20:02 +0000 (14:20 +0200)
committerGurucharan Shetty <guru@ovn.org>
Thu, 13 Sep 2018 12:19:54 +0000 (05:19 -0700)
commit949758946767ff79b4c3eb5eca755c6cf21643e3
tree5db0f68b6aaee1f8c8164500a2409e4ebc432127
parenta692410af0f71f89ef3b4c4b89b039d23cdfedb3
ovs-save: Don't always include the default flow during restore

Currently the default flow (actions=NORMAL) is present in the flow table after
the flow table is restored also when the default flow is removed.

This commit changes the behaviour of the "ovs-save save-flows" command to use
"replace-flows" instead of "add-flows" to restore the flows. This is needed in
order to always have the new flow table as it was before restoring it.

Reported-by: Flavio Leitner <fbl@sysclose.org>
Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1626096
Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
utilities/ovs-save