-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
macfilter の "action" と "on" のデフォルト値を埋める。
旧コンフィグの macfilter では "action" と "on" は省略可能パラメタだった。 レシピコンフィグでは対応するパラメタ("action" と "interface")は省略不可 なので、デフォルト値に変換する。
- Loading branch information
Showing
2 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1458,12 +1458,16 @@ describe('ipsec', () => { | |
describe('macfilter', () => { | ||
it('mac address list on config', () => { | ||
assertconv(` | ||
macfilter add CONF action pass src 02:04:06:08:0a:0c on lan0 logging on | ||
macfilter add CONF action pass src 02:04:06:08:0a:0c on lan2 logging on | ||
macfilter add MINIMAL src 00:00:00:00:00:00 | ||
--- | ||
macfilter.entry.100.action: pass | ||
macfilter.entry.100.address: 02:04:06:08:0a:0c | ||
macfilter.entry.100.interface: ge1 | ||
macfilter.entry.100.logging: on | ||
macfilter.entry.100.action: pass | ||
macfilter.entry.100.address: 02:04:06:08:0a:0c | ||
macfilter.entry.100.interface: ge2 | ||
macfilter.entry.100.logging: on | ||
macfilter.entry.200.action: pass | ||
macfilter.entry.200.address: 00:00:00:00:00:00 | ||
macfilter.entry.200.interface: ge1 | ||
`); | ||
}); | ||
|
||
|
@@ -1472,6 +1476,7 @@ describe('macfilter', () => { | |
macfilter add BYURL action block src http://user:[email protected]/mac.txt interval 1h | ||
--- | ||
macfilter.entry-list.100.action: block | ||
macfilter.entry-list.100.interface: ge1 | ||
macfilter.entry-list.100.update-interval: 1h | ||
macfilter.entry-list.100.url: http://user:[email protected]/mac.txt | ||
`); | ||
|