def overlay_gateway_attach_vlan_vid(self, **kwargs):
        """Auto Generated Code
        """
        config = ET.Element("config")
        overlay_gateway = ET.SubElement(config, "overlay-gateway", xmlns="urn:brocade.com:mgmt:brocade-tunnels")
        name_key = ET.SubElement(overlay_gateway, "name")
        name_key.text = kwargs.pop('name')
        attach = ET.SubElement(overlay_gateway, "attach")
        vlan = ET.SubElement(attach, "vlan")
        mac_key = ET.SubElement(vlan, "mac")
        mac_key.text = kwargs.pop('mac')
        vid = ET.SubElement(vlan, "vid")
        vid.text = kwargs.pop('vid')

        callback = kwargs.pop('callback', self._callback)
        return callback(config)