Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Byczkowski <38091261+qduk@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 17, 2023
1 parent eb1e9f0 commit 48c0c85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/user/lib_use_cases_acl.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ The methods `process` and `match` both follow this pattern. As an example, the `

The methods `validate` and `enforce` both follow this pattern. As an example, the `validate` method will dynamically find any method that follows `f"process_*` pattern. This allows a Python class that inherits from `ACLRule` to simply add a `validate_ip_in_network` method and that method would be called.

In both methods, ordering can be controlled with `order_validate` and `order_enforce` respectively. The default ordering will be what the Python `dir` function returns, which is in alphabetical.
In both methods, ordering can be controlled with order_validate and order_enforce respectively. The default ordering will be alphabetical, as returned by the Python dir function.

## ACLRule

The `ACLRule` class at a high level:

- The class `ACLRule` is used for working with Access Control List (ACL) rules.
- Is built with extensibility in mind to allow you to customize how your business operates.
- It is built with extensibility in mind to allow you to customize how your business operates.
- It contains a list of attributes such as "name," "src_ip," "src_zone," "dst_ip," "dst_port," "dst_zone," and "action" that are commonly used to work with ACLs.
- Provides the ability for you to expand data such as converting an address-group name into detailed addresses with your custom code.
- Provides the Cartesian product (or permutations) of the rules to make evaluation simple.
Expand Down

0 comments on commit 48c0c85

Please sign in to comment.