def _find_chain_name(self, mac):
ipt_cmd = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>cmdo = dsl.execute(ipt_cmd, root_helper=self._root_helper,<EOL>log_output=False)<EOL>for o in cmdo.split('<STR_LIT:\n>'):<EOL><INDENT>if mac in o.lower():<EOL><INDENT>chain = o.split()[<NUM_LIT:1>]<EOL>LOG.info('<STR_LIT>',<EOL>{'<STR_LIT>': chain, '<STR_LIT>': mac})<EOL>return chain<EOL><DEDENT><DEDENT>
Find a rule associated with a given mac.