def convert_dict(my_dict):
    """Convert dictionaries from Netmiko format to NAPALM format."""
    new_dict = {}
    for k, v in my_dict.items():
        new_dict[k] = v

    hostname = new_dict.pop('host')
    new_dict['hostname'] = hostname

    device_type = new_dict.pop('device_type')
    new_device_type = device_type.split('_')[1]
    new_dict['device_type'] = new_device_type

    return new_dict