The reliability of capacity-limited networks subject to are failures can be evaluated by the mean value of maximum flow. Calculating the mean value of maximum flow is NP-hard. However, the Onaga upper bound sometimes gives the exact value, eg, when graphs are bipartite. This paper gives for networks (whether arcs are directed or not) a necessary and sufficient condition for the Onaga upper bound to be exact.