Add support for routes with interfaces
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
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
Agree, is basic case use, like ip route x.x.x.x x.x.x.x null0
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
I am good with this. One thing to note: You are missing the required migration to make this work in your commit.
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.