]> git.proxmox.com Git - mirror_ovs.git/blobdiff - ofproto/ofproto.c
ofproto: Add support to watch controller port liveness in fast-failover group
[mirror_ovs.git] / ofproto / ofproto.c
index e2591287dfd888936995b04729598ccd597addfb..0fbd6c380288558615a982a7659c1d1f85cdb21b 100644 (file)
@@ -1906,7 +1906,8 @@ ofproto_wait(struct ofproto *p)
 bool
 ofproto_is_alive(const struct ofproto *p)
 {
-    return connmgr_has_controllers(p->connmgr);
+    return (connmgr_has_controllers(p->connmgr)
+            && connmgr_is_any_controller_admitted(p->connmgr));
 }
 
 /* Adds some memory usage statistics for 'ofproto' into 'usage', for use with