Contracts can contain permit and deny rules with different priorities to provide granular traffic control in the Cisco APIC environment.
A contract can use permit and deny rules to explicitly allow or block traffic between endpoints.
-
Supports permit and deny actions.
-
Supports default, highest, medium, and lowest priorities for deny rules.
-
Resolves matching rule conflicts according to rule priority and contract scope.
Rule priority and conflict resolution
The system uses the following priority hierarchy to resolve rule conflicts:
-
The implicit deny rule has the lowest priority.
-
Contract rules between
vzAnyobjects have a higher priority than the implicit deny rule. -
Contract rules between specific EPG pairs have a higher priority than rules between
vzAnyobjects. -
For a contract between a specific EPG pair, a deny rule with the default priority has the same priority as a permit rule for that EPG pair. If traffic matches both rules, the deny rule takes precedence.
-
For a contract between
vzAnyobjects, a deny rule with the default priority has the same priority as a permit rule for that pair. If traffic matches both rules, the deny rule takes precedence. -
Deny rules with the highest priority are evaluated at the same priority level as EPG-to-EPG contract rules.
-
Deny rules with medium priority are evaluated at the same priority level as
vzAny-to-EPG contract rules. -
Deny rules with the lowest priority are evaluated at the same priority level as
vzAny-to-vzAnycontract rules. -
If you lower the priority of a deny rule in a contract between EPGs, a matching permit rule with a higher priority takes precedence.