-
Notifications
You must be signed in to change notification settings - Fork 28
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 #226 from sbezverk/test_validator
ipv4 unicast message validation
- Loading branch information
Showing
24 changed files
with
954 additions
and
244 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 |
---|---|---|
|
@@ -9,6 +9,7 @@ cmd/bin | |
.vscode | ||
perf | ||
.DS_Store | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
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,4 @@ | ||
FROM scratch | ||
|
||
COPY ./bin/validator /validator | ||
ENTRYPOINT ["/validator"] |
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 was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
hostname r1 | ||
logging console debugging | ||
username gobmp | ||
username gobmp group root-lr | ||
username gobmp group cisco-support | ||
username gobmp password 7 13021810061C557878 | ||
interface Loopback0 | ||
interface Loopback0 ipv4 address 1.1.1.1 255.255.255.255 | ||
interface MgmtEth0/RP0/CPU0/0 ipv4 address 172.30.0.2 255.255.255.0 | ||
interface GigabitEthernet0/0/0/0 ipv4 address 10.1.1.3 255.255.255.0 | ||
interface GigabitEthernet0/0/0/1 ipv4 address 10.2.1.2 255.255.255.0 | ||
! | ||
route-policy pass-all | ||
pass | ||
end-policy | ||
! | ||
router bgp 100 | ||
router bgp 100 bgp router-id 1.1.1.1 | ||
router bgp 100 bgp update-delay 0 | ||
router bgp 100 address-family ipv4 unicast | ||
router bgp 100 address-family ipv4 unicast redistribute connected | ||
router bgp 100 neighbor 10.2.1.3 | ||
router bgp 100 neighbor 10.2.1.3 remote-as 200 | ||
router bgp 100 neighbor 10.2.1.3 bmp-activate server 1 | ||
router bgp 100 neighbor 10.2.1.3 address-family ipv4 unicast | ||
router bgp 100 neighbor 10.2.1.3 address-family ipv4 unicast route-policy pass-all in | ||
router bgp 100 neighbor 10.2.1.3 address-family ipv4 unicast route-policy pass-all out | ||
bmp server 1 | ||
bmp server 1 host 10.1.1.2 port 5000 | ||
ssh server v2 | ||
ssh server vrf default | ||
end |
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,31 @@ | ||
hostname r2 | ||
logging console debugging | ||
username gobmp | ||
username gobmp group root-lr | ||
username gobmp group cisco-support | ||
username gobmp password 7 13021810061C557878 | ||
interface Loopback0 | ||
interface Loopback0 ipv4 address 2.2.2.2 255.255.255.255 | ||
interface MgmtEth0/RP0/CPU0/0 ipv4 address 172.30.0.3 255.255.255.0 | ||
interface GigabitEthernet0/0/0/0 ipv4 address 10.2.1.3 255.255.255.0 | ||
! | ||
route-policy pass-all | ||
pass | ||
end-policy | ||
! | ||
router bgp 200 | ||
router bgp 200 bgp router-id 2.2.2.2 | ||
router bgp 200 bgp update-delay 0 | ||
router bgp 200 address-family ipv4 unicast | ||
router bgp 200 address-family ipv4 unicast redistribute connected | ||
router bgp 200 neighbor 10.2.1.2 | ||
router bgp 200 neighbor 10.2.1.2 remote-as 100 | ||
router bgp 200 neighbor 10.2.1.2 bmp-activate server 1 | ||
router bgp 200 neighbor 10.2.1.2 address-family ipv4 unicast | ||
router bgp 200 neighbor 10.2.1.2 address-family ipv4 unicast route-policy pass-all in | ||
router bgp 200 neighbor 10.2.1.2 address-family ipv4 unicast route-policy pass-all out | ||
bmp server 1 | ||
bmp server 1 host 10.1.1.2 port 5000 | ||
ssh server v2 | ||
ssh server vrf default | ||
end |
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,5 @@ | ||
compile-validator: | ||
CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -ldflags '-extldflags "-static"' -o ../../bin/validator ./validator.go | ||
|
||
compile-validator-mac: | ||
CGO_ENABLED=0 GOOS=darwin GO111MODULE=on go build -a -ldflags '-extldflags "-static"' -o ../../bin/validator.mac ./validator.go |
Oops, something went wrong.