Enables access control list (ACL) logging for packets and flows that taboo contract rules deny.
Procedure
-
Enter the following commands to enable deny logging for a taboo contract subject:
Example:
configure tenant tenant_name contract contract_name type deny subject subject_name access-group access_list_name both log endThe following example enables deny logging for the
dropftpsubject:apic1# configure apic1(config)# tenant BDMode1 apic1(config-tenant)# contract dropFTP type deny apic1(config-tenant-contract)# subject dropftp apic1(config-tenant-contract-subj)# access-group ftp both log apic1(config-tenant-contract-subj)# endDeny logging is enabled for traffic that matches the specified access list.
-
To disable deny logging later, use the no access-group command in contract-subject configuration mode.
Example:
apic1# configure apic1(config)# tenant BDMode1 apic1(config-tenant)# contract dropFTP type deny apic1(config-tenant-contract)# subject dropftp apic1(config-tenant-contract-subj)# no access-group ftp both log apic1(config-tenant-contract-subj)# end