when creating/adding a public ip, set the initial interface to be the first interface...
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 9 Nov 2010 01:55:20 +0000 (12:55 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 10 Nov 2010 03:55:23 +0000 (14:55 +1100)
server/ctdb_takeover.c

index d7fb5ad5f0839093c836d46db341b854f7372abc..33fd0c2c4bd84402481a58c0dace3200afaad1f1 100644 (file)
@@ -905,6 +905,9 @@ static int ctdb_add_public_address(struct ctdb_context *ctdb,
                        talloc_free(vnn);
                        return -1;
                }
+               if (i == 0) {
+                       vnn->iface = ctdb_find_iface(ctdb, vnn->ifaces[i]);
+               }
        }
 
        DLIST_ADD(ctdb->vnn, vnn);