Skip to content

Commit 7c7c4c1

Browse files
committed
Add filters configuration to configfile template.
1 parent 170a8ab commit 7c7c4c1

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

src/cmd/configfile.rs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,39 @@ pub fn run() {
125125
# Command REP socket bind.
126126
command_bind="{{ mesh.proxy_api.command_bind }}"
127127
128+
# Filters.
129+
[mesh.filters]
130+
131+
# DevAddr prefix filters.
132+
#
133+
# Example configuration:
134+
# dev_addr_prefixes=["0000ff00/24"]
135+
#
136+
# The above filter means that the 24MSB of 0000ff00 will be used to
137+
# filter DevAddrs. Uplinks with DevAddrs that do not match any of the
138+
# configured filters will not be forwarded. Leaving this option empty
139+
# disables filtering on DevAddr.
140+
dev_addr_prefixes=[
141+
{{#each mesh.filters.dev_addr_prefixes}}
142+
"{{this}}",
143+
{{/each}}
144+
]
145+
146+
# JoinEUI prefix filters.
147+
#
148+
# Example configuration:
149+
# join_eui_prefixes=["0000ff0000000000/24"]
150+
#
151+
# The above filter means that the 24MSB of 0000ff0000000000 will be used
152+
# to filter JoinEUIs. Uplinks with JoinEUIs that do not match any of the
153+
# configured filters will not be forwarded. Leaving this option empty
154+
# disables filtering on JoinEUI.
155+
join_eui_prefixes=[
156+
{{#each mesh.filters.join_eui_prefixes}}
157+
"{{this}}",
158+
{{/each}}
159+
]
160+
128161
129162
# Backend configuration.
130163
[backend]

0 commit comments

Comments
 (0)