Skip to content

Commit

Permalink
Add test script for null_route_helper (#3812)
Browse files Browse the repository at this point in the history
* Add test script for null_route_helper

Signed-off-by: bingwang <[email protected]>
  • Loading branch information
bingwang-ms authored Aug 16, 2021
1 parent 67266b9 commit 143fb4a
Show file tree
Hide file tree
Showing 2 changed files with 453 additions and 0 deletions.
272 changes: 272 additions & 0 deletions tests/acl/null_route/acl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
{
"acl": {
"acl-sets": {
"acl-set": {
"NULL_ROUTE_ACL_TABLE_V4": {
"acl-entries": {
"acl-entry": {
"1": {
"config": {
"sequence-id": 1
},
"actions": {
"config": {
"forwarding-action": "DROP"
}
},
"ip": {
"config": {
"destination-ip-address": "9.5.9.3/32"
}
}
},
"2": {
"actions": {
"config": {
"forwarding-action": "ACCEPT"
}
},
"config": {
"sequence-id": 2
},
"ip": {
"config": {
"protocol": "IP_TCP",
"destination-ip-address": "10.2.1.2/32"
}
},
"transport": {
"config": {
"destination-port": "22"
}
}
},
"3": {
"actions": {
"config": {
"forwarding-action": "ACCEPT"
}
},
"config": {
"sequence-id": 3
},
"ip": {
"config": {
"protocol": "IP_TCP",
"destination-ip-address": "10.2.1.2/32"
}
},
"transport": {
"config": {
"destination-port": "443"
}
}
},
"4": {
"actions": {
"config": {
"forwarding-action": "ACCEPT"
}
},
"config": {
"sequence-id": 4
},
"ip": {
"config": {
"protocol": "IP_UDP"
}
},
"transport": {
"config": {
"destination-port": "67"
}
}
},
"5": {
"actions": {
"config": {
"forwarding-action": "ACCEPT"
}
},
"config": {
"sequence-id": 5
},
"ip": {
"config": {
"protocol": "IP_ICMP"
}
}
},
"6": {
"config": {
"sequence-id": 6
},
"actions": {
"config": {
"forwarding-action": "DROP"
}
},
"ip": {
"config": {
"destination-ip-address": "10.2.1.2/32"
}
}
},
"9998": {
"actions": {
"config": {
"forwarding-action": "ACCEPT"
}
},
"config": {
"sequence-id": 9998
},
"ip": {
"config": {
"source-ip-address": "0.0.0.0/0",
"destination-ip-address": "0.0.0.0/0"
}
}
}
}
},
"config": {
"name": "NULL_ROUTE_ACL_TABLE_V4"
}
},
"NULL_ROUTE_ACL_TABLE_V6": {
"acl-entries": {
"acl-entry": {
"1": {
"config": {
"sequence-id": 1
},
"actions": {
"config": {
"forwarding-action": "DROP"
}
},
"ip": {
"config": {
"destination-ip-address": "103:23:2:1::1/128"
}
}
},
"2": {
"actions": {
"config": {
"forwarding-action": "ACCEPT"
}
},
"config": {
"sequence-id": 2
},
"ip": {
"config": {
"protocol": "IP_TCP",
"destination-ip-address": "103:23:2:1::1/128"
}
},
"transport": {
"config": {
"destination-port": "22"
}
}
},
"3": {
"actions": {
"config": {
"forwarding-action": "ACCEPT"
}
},
"config": {
"sequence-id": 3
},
"ip": {
"config": {
"protocol": "IP_TCP",
"destination-ip-address": "103:23:2:1::1/128"
}
},
"transport": {
"config": {
"destination-port": "443"
}
}
},
"4": {
"actions": {
"config": {
"forwarding-action": "ACCEPT"
}
},
"config": {
"sequence-id": 4
},
"ip": {
"config": {
"protocol": "IP_UDP"
}
},
"transport": {
"config": {
"destination-port": "67"
}
}
},
"5": {
"actions": {
"config": {
"forwarding-action": "ACCEPT"
}
},
"config": {
"sequence-id": 5
},
"ip": {
"config": {
"protocol": "IP_ICMP"
}
}
},
"6": {
"config": {
"sequence-id": 6
},
"actions": {
"config": {
"forwarding-action": "DROP"
}
},
"ip": {
"config": {
"destination-ip-address": "103:23:2:1::1/128"
}
}
},
"9998": {
"actions": {
"config": {
"forwarding-action": "ACCEPT"
}
},
"config": {
"sequence-id": 9998
},
"ip": {
"config": {
"source-ip-address": "::/0",
"destination-ip-address": "::/0"
}
}
}
}
},
"config": {
"name": "NULL_ROUTE_ACL_TABLE_V6"
}
}
}
}
}
}
Loading

0 comments on commit 143fb4a

Please sign in to comment.