code: def set_ip(self, inter_type, inter, ip_addr):
          
          config = ET.Element('config')
          interface = ET.SubElement(config, 'interface',
                                    xmlns=("urn:brocade.com:mgmt:"
                                           "brocade-interface"))
          intert = ET.SubElement(interface, inter_type)
          name = ET.SubElement(intert, 'name')
          name.text = inter
          ipel = ET.SubElement(intert, 'ip')
          ip_config = ET.SubElement(
              ipel, 'ip-config',
              xmlns="urn:brocade.com:mgmt:brocade-ip-config"
          )
          address = ET.SubElement(ip_config, 'address')
          ipaddr = ET.SubElement(address, 'address')
          ipaddr.text = ip_addr
          try:
              self._callback(config)
              return True
          # TODO add logging and narrow exception window.
          except Exception as error:
              logging.error(error)
              return False
docs: Set IP address of a L3 interface.
  
          Args:
              inter_type: The type of interface you want to configure. Ex.
                  tengigabitethernet, gigabitethernet, fortygigabitethernet.
              inter: The ID for the interface you want to configure. Ex. 1/0/1
              ip_addr: IP Address in <prefix>/<bits> format. Ex: 10.10.10.1/24
  
          Returns:
              True if command completes successfully or False if not.
  
          Raises:
              None