def fail(self):
if self.failed is True:<EOL><INDENT>raise AttributeError("<STR_LIT>".format(self))<EOL><DEDENT>else:<EOL><INDENT>self.failed = True<EOL>self.time_of_death = timenow()<EOL>for n in self.nodes():<EOL><INDENT>n.fail()<EOL><DEDENT><DEDENT>
Fail an entire network.