def create_netmiko_dict(net_device):
    """
    From a Django NetworkDevice create a dict for netmiko.
    """
    my_device = {}
    my_device['device_type'] = net_device.device_type
    my_device['ip'] = net_device.ip_address
    my_device['username'] = net_device.credentials.username
    my_device['password'] = net_device.credentials.password
    return my_device