Skip to main content

Fabric Leaf Switch Profile

Leaf Switch Profiles can either be auto-generated, one per leaf, by providing a naming convention or can be defined explicitly. In case of auto-generated profiles the following placeholders can be used when defining the naming convention:

  • \\g<id>: gets replaced by the respective leaf node ID
  • \\g<name>: gets replaced by the respective leaf hostname

Location in GUI: Fabric » Fabric Policies » Switches » Leaf Switches » Profiles

Diagram

Classes

apic

NameTypeConstraintMandatoryDefault Value
auto_generate_switch_pod_profilesBooleantrue, falseNofalse
auto_generate_fabric_leaf_switch_interface_profilesBooleantrue, falseNofalse

fabric_policies (apic)

NameTypeConstraintMandatoryDefault Value
leaf_switch_profile_nameStringmin: 1, max: 64NoLEAF\g<id>
leaf_switch_selector_nameStringmin: 1, max: 64NoLEAF\g<id>
leaf_interface_profile_nameStringmin: 1, max: 64NoLEAF\g<id>
leaf_switch_profilesList[leaf_switch_profiles]No

nodes (apic.node_policies)

NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 4000Yes
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No
fabric_policy_groupStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No

leaf_switch_profiles (apic.fabric_policies)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
selectorsList[selectors]No
interface_profilesListString[Regex: ^[a-zA-Z0-9_.:-]{1,64}$]No
expected_stateClass[expected_state]No

selectors (apic.fabric_policies.leaf_switch_profiles)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
policyStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No
node_blocksList[node_blocks]No

expected_state (apic.fabric_policies.leaf_switch_profiles)

NameTypeConstraintMandatoryDefault Value
minimum_healthIntegermin: 0, max: 100No
maximum_critical_faultsIntegermin: 0No
maximum_major_faultsIntegermin: 0No
maximum_minor_faultsIntegermin: 0No

node_blocks (apic.fabric_policies.leaf_switch_profiles.selectors)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
fromIntegermin: 1, max: 4000Yes
toIntegermin: 1, max: 4000No

Examples

Auto-generate profiles:

apic:
auto_generate_switch_pod_profiles: true
fabric_policies:
leaf_switch_profile_name: "LEAF\\g<id>"
leaf_switch_selector_name: "LEAF\\g<id>"

Explicitly configured profiles:

apic:
fabric_policies:
leaf_switch_profiles:
- name: LEAF1001
selectors:
- name: SEL1
policy: ALL_LEAFS
node_blocks:
- name: BLOCK1
from: 1001
interface_profiles:
- LEAF1001