def set_static_ip_address(self, context, msg):
args = jsonutils.loads(msg)<EOL>macaddr = args.get('<STR_LIT>')<EOL>ipaddr = args.get('<STR_LIT>')<EOL>LOG.debug('<STR_LIT>', (<EOL>{'<STR_LIT>': macaddr, '<STR_LIT>': ipaddr}))<EOL>event_type = '<STR_LIT>'<EOL>payload = {'<STR_LIT>': macaddr, '<STR_LIT>': ipaddr}<EOL>timestamp = time.ctime()<EOL>data = (event_type, payload)<EOL>pri = self.obj.PRI_LOW_START<EOL>self.obj.pqueue.put((pri, timestamp, data))<EOL>LOG.debug('<STR_LIT>')<EOL>return <NUM_LIT:0><EOL>
Process request for setting rules in iptables.

        In cases that static ip address is assigned for a VM, it is needed
        to update the iptables rule for that address.