device: add support for configuring vrf
authorMaxim Anisimov <maxim.anisimov.ua@gmail.com>
Thu, 31 Oct 2024 06:25:45 +0000 (09:25 +0300)
committerRobert Marko <robimarko@gmail.com>
Sat, 17 May 2025 09:32:17 +0000 (11:32 +0200)
commitd610d68c71b82b987c665a922c10084d5cf89f8c
tree1dabfdb93dae875421e80070f065bd4b791dd4fe
parent61ae5732adea8bafcdf158c979a0a0d68b2cff62
device: add support for configuring vrf

Config example:
...
config device
option type 'vrf'
option name 'dcn'
option table '20'
option mtu '1500'
option ipv6 '0'
list ports 'l2tp-wanvpn'
list ports 'lan3'

config interface 'dcn'
option proto 'none'
option device 'dcn'
...

Note: using "ports" in config simplifies luci integration

Tested-by: Paul Donald <newtwen+github@gmail.com>
Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
Link: https://github.com/openwrt/netifd/pull/38
Signed-off-by: Robert Marko <robimarko@gmail.com>
CMakeLists.txt
config.c
system-linux.c
system.h
vrf.c [new file with mode: 0644]