When we create a contract, we need to create the scope (where the contract can be applied) and a subject, which contains the access-group and the service template graph.
We start by creating the contract:
apic1(config-tenant)# contract ACME-Contract apic1(config-tenant-contract)# scope tenant apic1(config-tenant-contract)# subject Subject apic1(config-tenant-contract-subj)# access-group default both apic1(config-tenant-contract-subj)# l4l7 graph ACME-SGT apic1(config-tenant-contract-subj)# exit apic1(config-tenant-contract)# exit apic1(config-tenant)#
The next part of creating the contracts is to assign the
provider
andconsumer
roles:
apic1(config-tenant)# application ACME-AP apic1(config-tenant-app)# epg Finance apic1(config-tenant-app-epg)# contract provider ACME-Contract apic1(config-tenant-app-epg)# exit apic1(config-tenant-app)# epg Marketing apic1(config-tenant-app...