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

Enhance interface filtering and ensure uniqueness in netifyd configuration #946

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

stephdl
Copy link
Contributor

@stephdl stephdl commented Dec 2, 2024

Improve the filtering of network interfaces by excluding specified patterns and ensure that internal and external interfaces are unique and sorted in the netifyd configuration.

#929

we can remove by the cli some interface (we look by startswith, so wg == wg*

  • how to add an exclusion list
uci add_list netifyd.@netifyd[0].exclude='eth1'
uci add_list netifyd.@netifyd[0].exclude='tun'
uci add_list netifyd.@netifyd[0].exclude='wg'
uci commit netifyd
  • how to add and remove item of the exclusion list
uci delete netifyd.@netifyd[0].exclude='eth1'
uci add_list netifyd.@netifyd[0].exclude='eth2'
uci commit netifyd
  • how to remove completely the exclusion list
uci delete netifyd.@netifyd[0].exclude
uci commit netifyd

@stephdl stephdl requested a review from gsanchietti December 2, 2024 17:10
@gsanchietti gsanchietti merged commit f212ba9 into main Dec 3, 2024
1 check passed
@gsanchietti gsanchietti deleted the sdl-929 branch December 3, 2024 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done ✅
Development

Successfully merging this pull request may close these issues.

2 participants