forked from sonic-net/sonic-utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[acl-loader] Support for ACL table type L3V4V6 (sonic-net#2794)
Support a new ACL table type called L3V4V6. This table supports both v4 and v6 Match types. Add unit tests for this new ACL table type. HLD: sonic-net/SONiC#1267
- Loading branch information
1 parent
442443a
commit 6ccd166
Showing
7 changed files
with
299 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
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,109 @@ | ||
{ | ||
"acl": { | ||
"acl-sets": { | ||
"acl-set": { | ||
"DATAACLV4V6": { | ||
"acl-entries": { | ||
"acl-entry": { | ||
"1": { | ||
"config": { | ||
"sequence-id": 1 | ||
}, | ||
"actions": { | ||
"config": { | ||
"forwarding-action": "ACCEPT" | ||
} | ||
}, | ||
"ip": { | ||
"config": { | ||
"protocol": "IP_TCP", | ||
"source-ip-address": "20.0.0.2/32", | ||
"destination-ip-address": "30.0.0.3/32" | ||
} | ||
} | ||
}, | ||
"2": { | ||
"config": { | ||
"sequence-id": 2 | ||
}, | ||
"actions": { | ||
"config": { | ||
"forwarding-action": "ACCEPT" | ||
} | ||
}, | ||
"l2": { | ||
"config": { | ||
"ethertype": "ETHERTYPE_IPV6" | ||
} | ||
}, | ||
"ip": { | ||
"config": { | ||
"protocol": "IP_ICMP", | ||
"source-ip-address": "::1/128", | ||
"destination-ip-address": "::1/128" | ||
} | ||
}, | ||
"icmp": { | ||
"config": { | ||
"type": "1", | ||
"code": "0" | ||
} | ||
} | ||
}, | ||
"3": { | ||
"config": { | ||
"sequence-id": 3 | ||
}, | ||
"actions": { | ||
"config": { | ||
"forwarding-action": "ACCEPT" | ||
} | ||
}, | ||
"ip": { | ||
"config": { | ||
"protocol": "IP_ICMP", | ||
"source-ip-address": "::1/128", | ||
"destination-ip-address": "::1/128" | ||
} | ||
}, | ||
"icmp": { | ||
"config": { | ||
"type": "1" | ||
} | ||
} | ||
}, | ||
"4": { | ||
"config": { | ||
"sequence-id": 2 | ||
}, | ||
"actions": { | ||
"config": { | ||
"forwarding-action": "ACCEPT" | ||
} | ||
}, | ||
"l2": { | ||
"config": { | ||
"ethertype": "ETHERTYPE_IPV4" | ||
} | ||
}, | ||
"ip": { | ||
"config": { | ||
"protocol": "IP_ICMP", | ||
"source-ip-address": "20.0.0.2/32", | ||
"destination-ip-address": "30.0.0.3/32" | ||
} | ||
}, | ||
"icmp": { | ||
"config": { | ||
"type": "1", | ||
"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
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.