code: def set_static_ip_address(self, context, msg):
          
          args = jsonutils.loads(msg)
          macaddr = args.get('mac')
          ipaddr = args.get('ip')
          LOG.debug('set_static_ip_address received: %(mac)s %(ip)s', (
                    {'mac': macaddr, 'ip': ipaddr}))
  
          # Add the request into queue for processing.
          event_type = 'cli.static_ip.set'
          payload = {'mac': macaddr, 'ip': ipaddr}
          timestamp = time.ctime()
          data = (event_type, payload)
          pri = self.obj.PRI_LOW_START
          self.obj.pqueue.put((pri, timestamp, data))
          LOG.debug('Added request to add static ip into queue.')
  
          return 0
docs: 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.