-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77246a4
commit 025389f
Showing
86 changed files
with
8,734 additions
and
2,482 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
fn open(message, asn, addr) { | ||
if !message.has_capability(CapabilityCode::FourOctetAs) { | ||
return CheckerResult::Drop; | ||
} | ||
CheckerResult::Accept | ||
} | ||
|
||
fn update(message, asn, addr) { | ||
// drop no-export community | ||
if message.has_community(0xFFFFFF01) { | ||
return CheckerResult::Drop; | ||
} | ||
CheckerResult::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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
fn open(message, asn, addr) { | ||
if asn == 100 { | ||
message.add_four_octet_as(74); | ||
} | ||
message.emit() | ||
} | ||
|
||
fn update(message, asn, addr) { | ||
if asn == 100 { | ||
message.add_community(1701); | ||
} | ||
message.emit() | ||
} |
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,11 @@ | ||
fn open(message, asn, addr) { | ||
message.emit() | ||
} | ||
|
||
fn update(message, asn, addr) { | ||
if asn == 65402 { | ||
// Apply a filter on both NLRI elements and withdraw elements | ||
message.prefix_filter(|prefix| prefix.within("10.128.0.0/16")); | ||
} | ||
message.emit() | ||
} |
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
Oops, something went wrong.