IP Extcommunity List
NX-OSIP extcommunity lists define ordered permit/deny rules that match the BGP extended community attribute of routes. Standard lists match route targets (rt), site-of-origin values (soo), 4-byte AS generic communities (4byteas-generic transitive / non-transitive) and EVPN router MACs (rmac), while expanded lists match the extended community string with a regular expression. Extcommunity lists are referenced from route map match extcommunity and set extcomm-list ... delete clauses.
Diagram
Section titled “Diagram”Classes
Section titled “Classes”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| devices | List | devices | No | |
| device_groups | List | device_groups | No | |
| global | Class | global | No | |
| templates | List | templates | No |
devices (nxos)
Section titled “devices (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
device_groups (nxos)
Section titled “device_groups (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
global (nxos)
Section titled “global (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
templates (nxos)
Section titled “templates (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
configuration (nxos.devices)
Section titled “configuration (nxos.devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| ip_ | List | ip_ | No |
ip_extcommunity_lists (nxos.devices.configuration)
Section titled “ip_extcommunity_lists (nxos.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| mode | Choice | standard, expanded | No | |
| entries | List | entries | No |
entries (nxos.devices.configuration.ip_extcommunity_lists)
Section titled “entries (nxos.devices.configuration.ip_extcommunity_lists)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| seq | Integer | min: 1, max: 4294967294 | Yes | |
| action | Choice | permit, deny | No | |
| regex | String | No | ||
| rts | List | String | No | |
| soos | List | String | No | |
| 4byteas_ | List | String | No | |
| 4byteas_ | List | String | No | |
| rmacs | List | MAC | No |
Examples
Section titled “Examples”Example 1: Standard extcommunity list matching route targets and site-of-origin values
nxos: devices: - name: BORDER-LEAF1 configuration: ip_extcommunity_lists: - name: ECL-TENANT-A mode: standard entries: - seq: 10 action: permit rts: - "65000:10010" - "65000:10020" soos: - "65000:1" - seq: 20 action: deny 4byteas_generic_transitives: - "4200000001:100"Example 2: Standard extcommunity list matching an EVPN router MAC and an expanded list using a regular expression
nxos: devices: - name: SPINE1 configuration: ip_extcommunity_lists: - name: ECL-RMAC mode: standard entries: - seq: 10 action: permit rmacs: - "00:11:22:33:44:55" - name: ECL-REGEX mode: expanded entries: - seq: 10 action: permit regex: "_65000_"