Skip to content

Commit

Permalink
corrected testing conf for deaggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
vkotronis committed Oct 3, 2020
1 parent 77b5b9a commit deab222
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 28 deletions.
15 changes: 9 additions & 6 deletions testing/detection/configs/config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
prefixes:
8_prefix: &8_prefix
8_prefix_1: &8_prefix_1
- 10.0.0.0/8
9_prefixes: &9_prefixes
- 10.0.0.0/9
- 10.128.0.0/9
8_prefix_2: &8_prefix_2
- 11.0.0.0/8
9_prefixes_2: &9_prefixes_2
- 11.0.0.0/9
- 11.128.0.0/9
16_prefix: &16_prefix
- 10.0.0.0/16
24_prefix_1: &24_prefix_1
Expand Down Expand Up @@ -75,8 +77,9 @@ asns:
- 1004
rules:
- prefixes:
- *8_prefix
- *9_prefixes
- *8_prefix_1
- *8_prefix_2
- *9_prefixes_2
origin_asns:
- *8_origin
neighbors:
Expand Down
44 changes: 22 additions & 22 deletions testing/detection/testfiles/implicit_withdrawal_subprefix.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@
"service": "a",
"type": "A",
"path": [8, 3, 2, 100],
"prefix": "10.0.0.0/8",
"prefix": "11.0.0.0/8",
"peer_asn": 8
},
"detection_update_response": {
"key": "1",
"handled": true,
"matched_prefix": "10.0.0.0/8",
"matched_prefix": "11.0.0.0/8",
"origin_as": 100
},
"detection_hijack_response": {
"prefix": "10.0.0.0/8",
"prefix": "11.0.0.0/8",
"hijack_as": 100,
"type": "E|0|-|-",
"time_started": 1.0,
"configured_prefix": "10.0.0.0/8"
"configured_prefix": "11.0.0.0/8"
},
"database_hijack_response": {
"type": "E|0|-|-",
"active": true,
"prefix": "10.0.0.0/8",
"prefix": "11.0.0.0/8",
"asns_inf": [8, 2, 3],
"hijack_as": 100,
"peers_seen": [8],
"num_asns_inf": 3,
"num_peers_seen": 1,
"configured_prefix": "10.0.0.0/8"
"configured_prefix": "11.0.0.0/8"
}
},
{
Expand All @@ -45,33 +45,33 @@
"service": "a",
"type": "A",
"path": [9, 3, 2, 100],
"prefix": "10.0.0.0/8",
"prefix": "11.0.0.0/8",
"peer_asn": 9
},
"detection_update_response": {
"key": "2",
"handled": true,
"matched_prefix": "10.0.0.0/8",
"matched_prefix": "11.0.0.0/8",
"origin_as": 100
},
"detection_hijack_response": {
"prefix": "10.0.0.0/8",
"prefix": "11.0.0.0/8",
"hijack_as": 100,
"type": "E|0|-|-",
"time_started": 1.0,
"time_last": 2.0,
"configured_prefix": "10.0.0.0/8"
"configured_prefix": "11.0.0.0/8"
},
"database_hijack_response": {
"type": "E|0|-|-",
"active": true,
"prefix": "10.0.0.0/8",
"prefix": "11.0.0.0/8",
"asns_inf": [9, 8, 2, 3],
"hijack_as": 100,
"peers_seen": [8, 9],
"num_asns_inf": 4,
"num_peers_seen": 2,
"configured_prefix": "10.0.0.0/8"
"configured_prefix": "11.0.0.0/8"
}
},
{
Expand All @@ -83,31 +83,31 @@
"service": "a",
"type": "A",
"path": [8, 3, 2, 1],
"prefix": "10.0.0.0/9",
"prefix": "11.0.0.0/9",
"peer_asn": 8
},
"detection_update_response": [
{
"key": "3",
"handled": true,
"matched_prefix": "10.0.0.0/8",
"matched_prefix": "11.0.0.0/9",
"origin_as": 1
},
{
"handled": true,
"matched_prefix": "10.0.0.0/8",
"matched_prefix": "11.0.0.0/8",
"origin_as": -1
}
],
"database_hijack_response": {
"type": "E|0|-|-",
"prefix": "10.0.0.0/8",
"prefix": "11.0.0.0/8",
"asns_inf": [9, 8, 2, 3],
"hijack_as": 100,
"peers_seen": [8, 9],
"num_asns_inf": 4,
"num_peers_seen": 2,
"configured_prefix": "10.0.0.0/8",
"configured_prefix": "11.0.0.0/8",
"peers_withdrawn": [8],
"active": true
}
Expand All @@ -121,31 +121,31 @@
"service": "a",
"type": "A",
"path": [9, 3, 2, 1],
"prefix": "10.0.0.0/9",
"prefix": "11.128.0.0/9",
"peer_asn": 9
},
"detection_update_response": [
{
"key": "4",
"handled": true,
"matched_prefix": "10.0.0.0/8",
"matched_prefix": "11.128.0.0/9",
"origin_as": 1
},
{
"handled": true,
"matched_prefix": "10.0.0.0/8",
"matched_prefix": "11.0.0.0/8",
"origin_as": -1
}
],
"database_hijack_response": {
"type": "E|0|-|-",
"prefix": "10.0.0.0/8",
"prefix": "11.0.0.0/8",
"asns_inf": [9, 8, 2, 3],
"hijack_as": 100,
"peers_seen": [8, 9],
"num_asns_inf": 4,
"num_peers_seen": 2,
"configured_prefix": "10.0.0.0/8",
"configured_prefix": "11.0.0.0/8",
"peers_withdrawn": [8,9],
"active": false,
"withdrawn": true
Expand Down

0 comments on commit deab222

Please sign in to comment.