@cached_property<EOL><INDENT>def children(self):<DEDENT>
tags = {'<STR_LIT:*>'}<EOL>if self.tag:<EOL><INDENT>network_tags = {self.tag: self.campaign.network.tags[self.tag]}<EOL><DEDENT>else:<EOL><INDENT>network_tags = self.campaign.network.tags<EOL><DEDENT>for tag, configs in network_tags.items():<EOL><INDENT>for config in configs:<EOL><INDENT>for mode, kconfig in config.items():<EOL><INDENT>if mode == '<STR_LIT>':<EOL><INDENT>if kconfig.match(self.name) or kconfig.match(LOCALHOST):<EOL><INDENT>tags.add(tag)<EOL>break<EOL><DEDENT><DEDENT>elif mode == '<STR_LIT>':<EOL><INDENT>if self.name in kconfig or LOCALHOST in kconfig:<EOL><INDENT>tags.add(tag)<EOL>break<EOL><DEDENT><DEDENT>elif mode == '<STR_LIT>':<EOL><INDENT>tags.add(tag)<EOL>break<EOL><DEDENT><DEDENT>if tag in tags:<EOL><INDENT>break<EOL><DEDENT><DEDENT><DEDENT>return tags<EOL>
Retrieve tags associated to the current node