Skip to content

Add filter to display OSPF Areas per device. #59

@LuPo

Description

@LuPo

Plugin version

v0.2.3

NetBox version

v4.1.7

Feature type

Data model extension

Proposed functionality

Add the following ModelMultipleChoiceFilter to OSPFAreaFilterSet:

    device_id = django_filters.ModelMultipleChoiceFilter(
        field_name='interfaces__interface__device__id',
        queryset=Device.objects.all(),
        to_field_name='id',
        label=_('Device (ID)'),
    )

Expand OSPFArea filter forms with device selection.

Use case

Modelling configurations for ospf routers requires a quick glimpse on the ospf areas defined on a given device. This filter allows this in the Areas app, and also permits to setup a custom link on the DCIM.Device detail view to quickly access this information.

While similar request hes been proposed in #18, this is far less specific use case, and can be immediately and broadly used.

Database changes

none

External dependencies

none

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions