gparray: Add "unreachable" attribute to segments
Adding an attribute to gparray makes the check for unreachable hosts more
accessible in utilities that might want to use them.
@@ -108,6 +108,10 @@ class Segment:
self.port=port
self.datadir=datadir
+ # Segments are "unreachable" if their host is not reachable.
+ # See detect_unreachable_hosts.py
+ self.unreachable = False
+
# Todo: Remove old dead code
self.valid = (status == 'u')
