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