Skip to content

Add OSPF interfaces to session #89

Description

@alehaa

Plugin version

v0.3.1

NetBox version

v4.3.4

Feature type

Change to existing functionality

Proposed functionality

Currently, a single OSPF interface can be modeled. I propose changing this to sessions between two devices, just like NetBox cables have two terminations.

Use case

Modeling two separate interfaces can lead to inconsistencies between endpoints, such as when the area, passphrase, or other parameters are changed for only one of the two interfaces. Additionally, if a device is removed from NetBox, the missing relationship to the other side doesn’t automatically tear down the OSPF adjacency. Introducing a proper relationship between both sides ensures consistency and automatically maintains clean data.

Database changes

I propose implementing these changes:

  • Renaming OSPFInterface model to OSPFSession
  • Renaming the interface field to a_interface
  • Renaming the instance field to a_instance
  • Adding new fields b_interface and b_instance (being optional for the moment to not break current data)

External dependencies

None

Mockup

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions