
There's more...
The aforementioned solution would not be appropriate, though, if we wanted to turn CDP off for a range of ports.
To turn off CDP for a range of ports, we would need to create a leaf interface profile. To do this, we navigate to Interface Policies | Profiles | Leaf Profiles, right-click on it, and select Create Leaf Interface Profile.

Name the profile and click on the plus sign next to Interface Selectors.

Enter a name for the port selector, and enter the ports in the Interface IDs row. Select CDP-Off as the Interface Policy Group from the drop-down list.

Click on OK.

Click on SUBMIT.
The next step is to create a switch profile. Navigate to Switch Policies | Profiles. Right-click on Leaf Profiles and select Create Leaf Profile.

Name the profile and then click on the plus sign next to Leaf Selectors. Select Leaf-1 and click on UPDATE.

Click on NEXT.
In the next window, select the CDP-Off profile.

Click on FINISH.
To check the deployment, navigate to Interface Policies | Profiles | Leaf Profiles | CDP-Off, and select 15-20. Click on Show Usage in the bottom right-hand corner. We can see that the policy is being used by the Leaf-1 node, and clicking on the link under Resources will show that the six interfaces (1/15 to 1/20) are using the CDP-Off policy group.

This methodology allows us to have very granular control over the fabric.