cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
787
Views
2
Helpful
6
Replies

Cisco ACI Nexus-as-code epg VPC static path

stelios_1911
Level 1
Level 1

Hi all,

I'm new to nac, do you know how to configure epg static port using VPC? Could you provide an example?

I search everywhere without any success, the NAC documentation does not provide one.

Thank you.

1 Accepted Solution

Accepted Solutions

          endpoint_groups:        
            - name: vlan-10
              bridge_domain: vlan-10
              physical_domains:
                - phys
              static_ports:
                - channel: vpc-to-core
                  node_id: 101
                  node2_id: 102
                  vlan: 10

Is your VPC and are those nodes defined? Also check indentation and optionally use the yaml extension in visual studio code to verify.

View solution in original post

6 Replies 6

robvand
Cisco Employee
Cisco Employee

stelios_1911
Level 1
Level 1

Hi robvand,

Thank you for the reply, it is not clear  how to configure it, could you please provide an example? My code below

apic:
  tenants:
    - name: prod
      application_profiles:
        - name: ap_prod
          endpoint_groups:
            - name: epg_Vlan02
              description: Test
              bridge_domain: bd_Vlan02
              physical_domains:
                - prod_phy_domain
              static_ports:
                - node_id: 1311
                  vlan: 2
                  pod_id: 1
                  port: 1
                  mode: regular
                - node_id: 1312
                  vlan: 2
                  pod_id: 1
                  port: 1
                  mode: regular

This assumes that the vPC is defined as "vpc-to-core"

        endpoint_groups:        
            - name: vlan-10
              bridge_domain: vlan-10
              physical_domains:
                - phys
              static_ports:
                - channel: vpc-to-core
                  vlan: 10

 

doesn't need the node_id? I think I'm doing something wrong, below the code and error from pipeline:

apic:
  tenants:
    - name: prod
      application_profiles:
        - name: ap_prod
          endpoint_groups:
            - name: epg_Vlan02
              description: TelDir_10.0.114.0_24
              bridge_domain: bd_Vlan02
              physical_domains:
                - prod_phy_domain
              static_ports:
                - node_id: 1311
                  vlan: 2
                  port: 1
                  channel: vpc_SPR-ESXHOS-PX02_data
                  mode: regular
                - node_id: 1312
                  vlan: 2
                  port: 1
                  channel: vpc_SPR-ESXHOS-PX02_data
                  mode: regular
 
stelios_1911_0-1739356360686.png

 

 

          endpoint_groups:        
            - name: vlan-10
              bridge_domain: vlan-10
              physical_domains:
                - phys
              static_ports:
                - channel: vpc-to-core
                  node_id: 101
                  node2_id: 102
                  vlan: 10

Is your VPC and are those nodes defined? Also check indentation and optionally use the yaml extension in visual studio code to verify.

stelios_1911
Level 1
Level 1

Oh my god is working! Thousand thanks robvand

I was  struggling for two days, I don't know why there is such a luck of documentation, there is one comprehensive example for nac and that's it. Not even AI tools helped.

Below the successful code:

static_ports:
                - node_id: 1311
                  node2_id: 1312
                  vlan: 2
                  channel: vpc_SPR-ESXHOS-PX02_data
                  mode: regular