netbox-routing icon indicating copy to clipboard operation
netbox-routing copied to clipboard

Add support for routes with interfaces

Open patrickpreuss opened this issue 1 year ago • 5 comments

Plugin version

master

NetBox version

V4.1.5

Feature type

Data model extension

Proposed functionality

Add the ability to configure routes with interfaces and/or too select a VDC instead of the device.

Use case

Some Vendors support VDCs, eg. Fortinet or CheckPoint

Some routes can only be specified by the interface, eg. PPP(oE) is just a route over an interfaces. Where as some Vendors require the configuration of an interface with the gateway,

Database changes

Not sure

External dependencies

None

patrickpreuss avatar Nov 05 '24 12:11 patrickpreuss

config router static
    edit 1
        set status disable
        set dst 10.0.0.0 255.0.0.0
        set gateway 10.255.2.1
        set distance 200
        set device "internal1.997"
    next
end

patrickpreuss avatar Nov 05 '24 12:11 patrickpreuss

Agree, is basic case use, like ip route x.x.x.x x.x.x.x null0

baldoarturo avatar Apr 22 '25 00:04 baldoarturo

Added support for it here.. gotta wait for the maintainers to check if they like it and i can send out a pull request https://github.com/baldoarturo/netbox-routing/commit/27586503d68fde1880330ccff4c8e81d2cb1d593

baldoarturo avatar Apr 22 '25 01:04 baldoarturo

I am good with this. One thing to note: You are missing the required migration to make this work in your commit.

DanSheps avatar Apr 22 '25 02:04 DanSheps

This could also be useful with nmcli when setting static routes on REHL.

This could be done through a custom field as a workaround while waiting for the PR to be merged.

ifoughal avatar Oct 13 '25 11:10 ifoughal