Enables access control list (ACL) logging for packets and flows that contract permit rules allow.
Procedure
-
Enter the following commands to enable permit logging for a contract subject:
For direction , enter
in,out, orboth.Example:
configure tenant tenant_name contract contract_name type permit subject subject_name access-group access_list_name direction log endThe following example enables permit logging for the
icmpsubject:apic1# configure apic1(config)# tenant BDMode1 apic1(config-tenant)# contract Logicmp type permit apic1(config-tenant-contract)# subject icmp apic1(config-tenant-contract-subj)# access-group arp both log apic1(config-tenant-contract-subj)# endPermit logging is enabled for traffic that matches the specified access list.
-
To disable permit logging later, use the no access-group command in contract-subject configuration mode.
Example:
apic1# configure apic1(config)# tenant BDMode1 apic1(config-tenant)# contract Logicmp type permit apic1(config-tenant-contract)# subject icmp apic1(config-tenant-contract-subj)# no access-group arp both log apic1(config-tenant-contract-subj)# end