.. versionadded:: 2019.2.0

    Returns interfaces for a specific device using arbitrary netbox filters

    device_name
        The name of the device, e.g., ``edge_router``
    kwargs
        Optional arguments to be used for filtering

    CLI Example:

    .. code-block:: bash

        salt myminion netbox.get_interfaces edge_router name="et-0/0/5"

def get_interfaces(device_name=None, **kwargs):
    '''
    .. versionadded:: 2019.2.0

    Returns interfaces for a specific device using arbitrary netbox filters

    device_name
        The name of the device, e.g., ``edge_router``
    kwargs
        Optional arguments to be used for filtering

    CLI Example:

    .. code-block:: bash

        salt myminion netbox.get_interfaces edge_router name="et-0/0/5"

    '''
    if not device_name:
        device_name = __opts__['id']
    netbox_device = get_('dcim', 'devices', name=device_name)
    return filter_('dcim',
                   'interfaces',
                   device_id=netbox_device['id'],
                   **kwargs)