cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
171
Views
0
Helpful
1
Replies

Configure EPG static binding on a FEX port (maybe also with Ansible)

irenof
Spotlight
Spotlight

Hi all, 

next week I will migrate a FEX from legacy to ACI and so I have to configure Access and Tenant policies. For the Access policies is ok, I found many recources online and I am pretty confident the configuration is working. 

Unfortunatley I haven't got a FEX to connect to ACI before the migration, so I cannot test all before the activity.

The other thing have to configure is the set of EPG static binding of the FEX port. What I will have to do?

This is my situation is:

FEX profile : FEX_111_IntProf

Leaf Interface Profile: Leaf_112_to FEX_111_IntProf (with the to fex check box)

Leaf switch profile: Leaf_112_SwProf with a binding to the Leaf_101_to FEX_111_IntProf

Now, immage I have to configure port 101/1/3 as trunk with VLAN ID 103:

I have my EPG: VL_103 (associate to BD) and I want to add a static binding, wille the window show something different for the fields:

- Path type

- Node

- Path

irenof_0-1743174908891.png

Or port for FEX will appear after the leaf 112 port?

Moreover, I will also have to configure future FEXs in ansible.

In the ansible aci module I see: 

irenof_1-1743175025855.png

https://docs.ansible.com/ansible/latest/collections/cisco/aci/aci_static_binding_to_epg_module.html#parameter-encap_id

And I do not know If I have to choose type "fex"  and port like:

- name: Deploy Static Path binding for given EPG
  cisco.aci.aci_static_binding_to_epg:
    host: apic
    username: admin
    password: SomeSecretPassword
    tenant: accessport-code-cert
    ap: accessport_code_app
    epg: VL_103
    encap_id: 103
    deploy_immediacy: immediate
    interface_mode: trunk
    interface_type: fex or switch_port
    pod_id: 1
    leafs: 112 
    interface: '101/1/3' or '1/3' 
    state: present
  delegate_to: localhost

Thank you!

 

1 Accepted Solution

Accepted Solutions

irenof
Spotlight
Spotlight

I had access to a FEX on my lab and I tested what I asked, here my results:

- On APIC GUI it is possible configure an EPG static bind for a FEX port just selecting the port from the drop down menu with all the leaf interfaces, as a normal leaf port

- With Ansible it is possible configure an EPG static bind for a FEX port thourgh the variable "extpaths":

The extpaths integer value part of the tDn.
extpaths is only used if interface_type is fex, fex_vpc or fex_port_channel.
When interface_type is fex_vpc, then extpaths is a list with both fex IDs.

and then select the port like "eth1/5", the FEX ID, like 112/1/5, will be inserted by the extpaths variable.

This answer my question.

I hope it will be useful to others!

View solution in original post

1 Reply 1

irenof
Spotlight
Spotlight

I had access to a FEX on my lab and I tested what I asked, here my results:

- On APIC GUI it is possible configure an EPG static bind for a FEX port just selecting the port from the drop down menu with all the leaf interfaces, as a normal leaf port

- With Ansible it is possible configure an EPG static bind for a FEX port thourgh the variable "extpaths":

The extpaths integer value part of the tDn.
extpaths is only used if interface_type is fex, fex_vpc or fex_port_channel.
When interface_type is fex_vpc, then extpaths is a list with both fex IDs.

and then select the port like "eth1/5", the FEX ID, like 112/1/5, will be inserted by the extpaths variable.

This answer my question.

I hope it will be useful to others!

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License