Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

device: add support for configuring vrf #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Linaro1985
Copy link

@Linaro1985 Linaro1985 commented Oct 31, 2024

This adds vrf configuring support to netifd.

network 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'

@systemcrash
Copy link
Contributor

You can add my Tested-by: tag if you like.

I've given this a try and it works fine.

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 <[email protected]>
Signed-off-by: Maxim Anisimov <[email protected]>
@systemcrash
Copy link
Contributor

Hi @dangowrt and @nbd168 - could we also get this in for 24 please?

I tested this and it works fine. This is related to/follow-up for openwrt/openwrt@2915cfb (master) and openwrt/openwrt@e3bbeab (24)

( Additional testing also welcome ofc )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants