When a desired flow is different than the installed flow,
we should update its actions based on the desired flow.

Signed-off-by: Gurucharan Shetty <shet...@nicira.com>
---
 ovn/controller/ofctrl.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ovn/controller/ofctrl.c b/ovn/controller/ofctrl.c
index 3b6c169..ea0573d 100644
--- a/ovn/controller/ofctrl.c
+++ b/ovn/controller/ofctrl.c
@@ -420,8 +420,8 @@ ofctrl_update_flows(void)
                     .match = i->match,
                     .priority = i->priority,
                     .table_id = i->table_id,
-                    .ofpacts = i->ofpacts,
-                    .ofpacts_len = i->ofpacts_len,
+                    .ofpacts = d->ofpacts,
+                    .ofpacts_len = d->ofpacts_len,
                     .command = OFPFC_MODIFY_STRICT,
                 };
                 queue_flow_mod(&fm);
-- 
1.7.9.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to