Access FEX Interface Profile
ACIFEX Interface Profiles can either be auto-generated (one per FEX) by providing a naming convention, or can be system-generated (one per FEX), 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\\g<fex>: gets replaced by the respective FEX ID
Location in GUI:
Fabric » Access Policies » Interfaces » Leaf Interfaces » Profiles
Diagram
Section titled “Diagram”Classes
Section titled “Classes”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| auto_generate_switch_pod_profiles | Boolean | No | false | |
| auto_generate_access_leaf_switch_interface_profiles | Boolean | No | false |
access_policies (apic)
Section titled “access_policies (apic)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| fex_profile_name | String | min: 1, max: 64 | No | LEAF\g<id>-FEX\g<fex> |
| fex_interface_profiles | List | [fex_interface_profiles] | No |
nodes (apic.interface_policies)
Section titled “nodes (apic.interface_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| id | Integer | min: 1, max: 4000 | Yes |
fexes (apic.interface_policies.nodes)
Section titled “fexes (apic.interface_policies.nodes)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| id | Integer | min: 101, max: 199 | Yes |
fex_interface_profiles (apic.access_policies)
Section titled “fex_interface_profiles (apic.access_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | Yes | |
| selectors | List | [selectors] | No |
selectors (apic.access_policies.fex_interface_profiles)
Section titled “selectors (apic.access_policies.fex_interface_profiles)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | Yes | |
| fex_id | Integer | min: 101, max: 199 | No | |
| fex_profile | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | No | |
| policy_group | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | No | |
| port_blocks | List | [port_blocks] | No |
port_blocks (apic.access_policies.fex_interface_profiles.selectors)
Section titled “port_blocks (apic.access_policies.fex_interface_profiles.selectors)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | Yes | |
| description | String | Regex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$ | No | |
| from_module | Integer | min: 1, max: 9 | No | 1 |
| from_port | Integer | min: 1, max: 127 | Yes | |
| to_module | Integer | min: 1, max: 9 | No | |
| to_port | Integer | min: 1, max: 127 | No |
Examples
Section titled “Examples”Auto-generated profiles:
apic: auto_generate_access_leaf_switch_interface_profiles: true access_policies: fex_profile_name: "LEAF\\g<id>-FEX\\g<fex>" interface_policies: nodes: - id: 101 fexes: - id: 101System-generated profiles:
apic: new_interface_configuration: true interface_policies: nodes: - id: 101 fexes: - id: 101Example-1: This configuration explicitly creates a FEX interface profile named LEAF101-FEX101, with a selector SEL1 that applies the 10G-SERVER policy group to a port block BLOCK1 starting at port 1.
apic: access_policies: fex_interface_profiles: - name: LEAF101-FEX101 selectors: - name: SEL1 policy_group: 10G-SERVER port_blocks: - name: BLOCK1 description: Server ABC from_port: 1Example-2: This is another example for a FEX Interface Profile, along with a clear description of each value.
- fex_interface_profiles: List of FEX interface profiles to define explicitly.
- selectors: List of selectors for this profile.
- policy_group: The policy group to associate with this selector (e.g.,
20G-APP-SERVERS). - port_blocks: List of port blocks under this selector.
- from_port and to_port: Starting port number in the block (e.g.,
1) and ending port number in the block (e.g.,8).
apic: access_policies: fex_interface_profiles: - name: LEAF102-FEX201 selectors: - name: FEX201-SEL policy_group: 20G-APP-SERVERS port_blocks: - name: APP-BLOCK description: Application Servers Block from_port: 1 to_port: 8Examples
Section titled “Examples”Auto-generated profiles:
apic: auto_generate_access_leaf_switch_interface_profiles: true access_policies: fex_profile_name: "LEAF\\g<id>-FEX\\g<fex>" interface_policies: nodes: - id: 101 fexes: - id: 101System-generated profiles:
apic: new_interface_configuration: true interface_policies: nodes: - id: 101 fexes: - id: 101Explicitly configured profiles:
apic: access_policies: fex_interface_profiles: - name: LEAF101-FEX101 selectors: - name: SEL1 policy_group: 10G-SERVER port_blocks: - name: BLOCK1 description: Server ABC from_port: 1