forked from aerleon/aerleon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ethernet-switching filter type (aerleon#318)
- Loading branch information
1 parent
49212ab
commit e428edb
Showing
4 changed files
with
75 additions
and
2 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
30 changes: 30 additions & 0 deletions
30
tests/regression/juniper/JuniperTest.testEthernetSwitchingFilterType.stdout.ref
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
firewall { | ||
family ethernet-switching { | ||
/* | ||
** $Id:$ | ||
** $Date:$ | ||
** $Revision:$ | ||
** | ||
*/ | ||
replace: filter test-filter { | ||
interface-specific; | ||
term good-term-1 { | ||
from { | ||
ip-protocol icmp; | ||
} | ||
then accept; | ||
} | ||
term good-term-2 { | ||
from { | ||
ip-destination-address { | ||
10.0.0.0/8; | ||
} | ||
ip-protocol tcp; | ||
destination-port 25; | ||
} | ||
then accept; | ||
} | ||
} | ||
} | ||
} | ||
|
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