ovn-controller: Update actions correctly.
authorGurucharan Shetty <gshetty@nicira.com>
Wed, 13 May 2015 20:44:06 +0000 (13:44 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 15 May 2015 16:31:29 +0000 (09:31 -0700)
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 <shettyg@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ovn/controller/ofctrl.c

index 6e1ac6b..bc4e8d4 100644 (file)
@@ -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);