def format_vdu_interfaces(interfaces_list):
    """ Convert the list of VDU interfaces in a dict using the name of the interfaces as keys

    Args:
        interfaces_list (list): The list of VDU net interfaces. Each item is a dict.

    Returns:
        dict: The interfaces as dict
        {
            "user": {
              "mac-address": "fa:16:3e:0c:94:7f",
              "ip-address": "192.168.252.12",
              "name": "ens6",
              "ns-vld-id": "user"
            },
            "cache": {
              "mac-address": "fa:16:3e:4d:b9:64",
              "ip-address": "192.168.253.9",
              "name": "ens7",
              "ns-vld-id": "cache"
            },
            "management": {
              "mgmt-vnf": "true",
              "mac-address": "fa:16:3e:99:33:43",
              "ip-address": "192.168.111.29",
              "name": "ens3",
              "ns-vld-id": "management"
            }
          }
    """
    interfaces = {}
    for interface in interfaces_list:
        net_type = interface.get('ns-vld-id', None)
        if net_type is None:
            continue
        interfaces[net_type] = interface
    return interfaces