-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from esnet-security/topic/soehlert/configurabl…
…e_payloads Topic/soehlert/configurable payloads
- Loading branch information
Showing
8 changed files
with
105 additions
and
60 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,22 +1,26 @@ | ||
Feature: block with BGP | ||
Users can block routes via BGP | ||
|
||
Scenario: We can block a v4 IP | ||
When we add 192.0.2.4/32 to the block list | ||
Then 192.0.2.4 is blocked | ||
And 192.0.2.5 is unblocked | ||
Scenario Outline: We can block an IP | ||
When we add <route> with <asn> and <community> to the block list | ||
Then <route> is blocked | ||
And <unblock_ip> is unblocked | ||
|
||
Scenario: We can block a v6 IP | ||
When we add 2001:DB8:A::/64 to the block list | ||
Then 2001:DB8:A:: is blocked | ||
And baba:: is unblocked | ||
Examples: data | ||
| route | asn | community | unblock_ip | | ||
| 192.0.2.4/32 | 54321 | 444 | 192.0.2.5 | | ||
| 192.0.2.10/32 | 4200000000 | 321 | 192.0.2.11 | | ||
| 2001:DB8:A::/64 | 54321 | 444 | baba:: | | ||
| 2001:DB8:B::/64 | 4200000000 | 321 | 2001:DB8::4 | | ||
|
||
Scenario: We can block, then unblock a v4 IP | ||
When we add 192.0.2.4/32 to the block list | ||
And we delete 192.0.2.4/32 from the block list | ||
Then 192.0.2.4 is unblocked | ||
Scenario Outline: We can block an IP | ||
When we add <route> with <asn> and <community> to the block list | ||
And we delete <route> with <asn> and <community> from the block list | ||
Then <unblock_ip> is unblocked | ||
|
||
Scenario: We can block, then unblock a v6 IP | ||
When we add 2001:DB8:B::/64 to the block list | ||
And we delete 2001:DB8:B::/64 from the block list | ||
Then 2001:DB8:B:: is unblocked | ||
Examples: data | ||
| route | asn | community | unblock_ip | | ||
| 192.0.2.4/32 | 54321 | 444 | 192.0.2.4 | | ||
| 192.0.2.10/32 | 4200000000 | 321 | 192.0.2.11 | | ||
| 2001:DB8:A::/64 | 54321 | 444 | 2001:DB8::1 | | ||
| 2001:DB8:B::/64 | 4200000000 | 321 | 2001:DB8::4 | |
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