-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[acl-loader] Add support for matching on ICMP and VLAN info (#1469)
- Add ICMP and VLAN fields - Add new unit test cases Signed-off-by: Danny Allen <[email protected]>
- Loading branch information
Showing
14 changed files
with
590 additions
and
10 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
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,37 @@ | ||
{ | ||
"acl": { | ||
"acl-sets": { | ||
"acl-set": { | ||
"DATAACL": { | ||
"acl-entries": { | ||
"acl-entry": { | ||
"1": { | ||
"config": { | ||
"sequence-id": 1 | ||
}, | ||
"actions": { | ||
"config": { | ||
"forwarding-action": "ACCEPT" | ||
} | ||
}, | ||
"ip": { | ||
"config": { | ||
"protocol": "IP_ICMP", | ||
"source-ip-address": "20.0.0.2/32", | ||
"destination-ip-address": "30.0.0.3/32" | ||
} | ||
}, | ||
"icmp": { | ||
"config": { | ||
"type": "3", | ||
"code": "300" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,37 @@ | ||
{ | ||
"acl": { | ||
"acl-sets": { | ||
"acl-set": { | ||
"DATAACL": { | ||
"acl-entries": { | ||
"acl-entry": { | ||
"1": { | ||
"config": { | ||
"sequence-id": 1 | ||
}, | ||
"actions": { | ||
"config": { | ||
"forwarding-action": "ACCEPT" | ||
} | ||
}, | ||
"ip": { | ||
"config": { | ||
"protocol": "IP_ICMP", | ||
"source-ip-address": "20.0.0.2/32", | ||
"destination-ip-address": "30.0.0.3/32" | ||
} | ||
}, | ||
"icmp": { | ||
"config": { | ||
"type": "3", | ||
"code": "foo" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,37 @@ | ||
{ | ||
"acl": { | ||
"acl-sets": { | ||
"acl-set": { | ||
"DATAACL": { | ||
"acl-entries": { | ||
"acl-entry": { | ||
"1": { | ||
"config": { | ||
"sequence-id": 1 | ||
}, | ||
"actions": { | ||
"config": { | ||
"forwarding-action": "ACCEPT" | ||
} | ||
}, | ||
"ip": { | ||
"config": { | ||
"protocol": "IP_ICMP", | ||
"source-ip-address": "20.0.0.2/32", | ||
"destination-ip-address": "30.0.0.3/32" | ||
} | ||
}, | ||
"icmp": { | ||
"config": { | ||
"type": "3", | ||
"code": "-1" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,37 @@ | ||
{ | ||
"acl": { | ||
"acl-sets": { | ||
"acl-set": { | ||
"DATAACL": { | ||
"acl-entries": { | ||
"acl-entry": { | ||
"1": { | ||
"config": { | ||
"sequence-id": 1 | ||
}, | ||
"actions": { | ||
"config": { | ||
"forwarding-action": "ACCEPT" | ||
} | ||
}, | ||
"ip": { | ||
"config": { | ||
"protocol": "IP_ICMP", | ||
"source-ip-address": "20.0.0.2/32", | ||
"destination-ip-address": "30.0.0.3/32" | ||
} | ||
}, | ||
"icmp": { | ||
"config": { | ||
"type": "300", | ||
"code": "0" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,37 @@ | ||
{ | ||
"acl": { | ||
"acl-sets": { | ||
"acl-set": { | ||
"DATAACL": { | ||
"acl-entries": { | ||
"acl-entry": { | ||
"1": { | ||
"config": { | ||
"sequence-id": 1 | ||
}, | ||
"actions": { | ||
"config": { | ||
"forwarding-action": "ACCEPT" | ||
} | ||
}, | ||
"ip": { | ||
"config": { | ||
"protocol": "IP_ICMP", | ||
"source-ip-address": "20.0.0.2/32", | ||
"destination-ip-address": "30.0.0.3/32" | ||
} | ||
}, | ||
"icmp": { | ||
"config": { | ||
"type": "foo", | ||
"code": "0" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.