bridge: Fix reversed string parsing in bridge_configure_flow_miss_model().
authorAlex Wang <alexw@nicira.com>
Mon, 30 Dec 2013 22:21:40 +0000 (14:21 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 30 Dec 2013 22:22:49 +0000 (14:22 -0800)
This commit fixes a command matching error introduced by commit
7155fa52f (ofproto-dpif: Add 'force-miss-model' configuration).

Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
vswitchd/bridge.c

index 6311ff3..746097f 100644 (file)
@@ -884,9 +884,9 @@ bridge_configure_flow_miss_model(const char *opt)
     enum ofproto_flow_miss_model model = OFPROTO_HANDLE_MISS_AUTO;
 
     if (opt) {
-        if (strcmp(opt, "with-facets")) {
+        if (!strcmp(opt, "with-facets")) {
             model = OFPROTO_HANDLE_MISS_WITH_FACETS;
-        } else if (strcmp(opt, "without-facets")) {
+        } else if (!strcmp(opt, "without-facets")) {
             model = OFPROTO_HANDLE_MISS_WITHOUT_FACETS;
         }
     }