def update_ip_rule(self, ip, mac):
rule_no = self._find_rule_no(mac)<EOL>chain = self._find_chain_name(mac)<EOL>if not rule_no or not chain:<EOL><INDENT>LOG.error('<STR_LIT>',<EOL>{'<STR_LIT>': ip, '<STR_LIT>': mac})<EOL>return<EOL><DEDENT>update_cmd = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT:%s>' % chain, '<STR_LIT:%s>' % rule_no,<EOL>'<STR_LIT>', '<STR_LIT>' % ip, '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT:%s>' % mac, '<STR_LIT>', '<STR_LIT>']<EOL>LOG.debug('<STR_LIT>', update_cmd)<EOL>dsl.execute(update_cmd, self._root_helper, log_output=False)<EOL>
Update a rule associated with given ip and mac.