---
title: Route Map
slug: aidc/route-map
createdAt: 2025-12-29T10:28:55.896Z
---

## <font color="#1d50a2">URLs Summary</font>

| **URL**                                                    | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| ---------------------------------------------------------- | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/running/route-maps/&#x7B;name}/&#x7B;sequence-id} | Y       | Y        | Y         | N       | Y          |
| /rest/v1/rpc/show-route-map-json                           | N       | Y        | N         | N       | N          |

## <font color="#1d50a2">Examples</font>

### <font color="#1d50a2">Create a route map.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/route-maps
{
    "name": "test",
    "sequence-id": 11,
    "action": "deny",
    "description": "test"
}
```

### <font color="#1d50a2">Modify a route map.</font>

```json
PATCH rest/v1/running/route-maps/test/11
{
    "description": "test_ipv4_route_map",
    "match-condition":
    {
        "ipv4-prefix-list": "test",
        "metric": 100,
        "peer-local": "true"
    },
    "set-action": {
        "ipv4-next-hop-address": "10.0.0.1",
        "set-metric": 2300
    }
}
```

### <font color="#1d50a2">Show route map summary</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-route-map-json
```

**response:**

```json
```

## <font color="#1d50a2">Properties Descriptions</font>

### <font color="#1d50a2">Route maps</font>

**Tree Diagrams**

```plaintext
  +--rw route-maps
     +--rw route-map* [name sequence-id]
        +--rw name
        +--rw sequence-id
        +--rw description?
        +--rw action
        +--rw match-condition
        |  +--rw as-path?
        |  +--rw alias?
        |  +--rw community?
        |  +--rw extended-community?
        |  +--rw large-community?
        |  +--rw local-preference?
        |  +--rw origin?
        |  +--rw default-route?
        |  +--rw route-distinguisher?
        |  +--rw route-type?
        |  +--rw vni?
        |  +--rw interface?
        |  +--rw ipv4-prefix-list?
        |  +--rw ipv4-prefix-len?
        |  +--rw ipv4-next-hop-address?
        |  +--rw ipv4-next-hop-prefix-list?
        |  +--rw ipv4-next-hop-type?
        |  +--rw ipv4-next-hop-prefix-len?
        |  +--rw ipv4-route-source-prefix-list?
        |  +--rw ipv6-prefix-list?
        |  +--rw ipv6-prefix-len?
        |  +--rw ipv6-next-hop-address?
        |  +--rw ipv6-next-hop-prefix-list?
        |  +--rw ipv6-next-hop-type?
        |  +--rw (peer-value)?
        |  |  +--:(peer-ipv4-address)
        |  |  |  +--rw peer-ipv4-address?
        |  |  +--:(peer-ipv6-address)
        |  |  |  +--rw peer-ipv6-address?
        |  |  +--:(peer-interface)
        |  |  |  +--rw peer-interface?
        |  |  +--:(peer-local)
        |  |     +--rw peer-local?
        |  +--rw metric?
        |  +--rw probability?
        |  +--rw tag?
        +--rw set-action
           +--rw aggregator-as-number
           +--rw aggregator-ip-address
           +--rw exclude-as*
           +--rw (prepend)?
           |  +--:(prepend-as)
           |  |  +--rw prepend-as*
           |  +--:(prepend-last-as)
           |     +--rw prepend-last-as?
           +--rw atomic-aggregate?
           +--rw community*
           +--rw delete-community-list?
           +--rw distance?
           +--rw local-preference?
           +--rw origin?
           +--rw originator-id?
           +--rw sr-te-color?
           +--rw weight?
           +--rw ipv4-gateway?
           +--rw ipv6-gateway?
           +--rw (bandwidth)
           |  +--:(bandwidth)
           |  |  +--rw bandwidth-value?
           |  +--:(bandwidth-cumulative)
           |  |  +--rw bandwidth-cumulative?
           |  +--:(bandwidth-num-multipaths)
           |     +--rw bandwidth-num-multipaths?
           +--rw bandwidth-non-transitive?
           +--rw route-target*
           +--rw site-of-origin*
           +--rw (next-hop)?
           |  +--:(ipv4-next-hop-address)
           |  |  +--rw ipv4-next-hop-address?
           |  +--:(ipv4-next-hop-peer-address)
           |  |  +--rw ipv4-next-hop-peer-address?
           |  +--:(ipv4-next-hop-unchanged)
           |     +--rw ipv4-next-hop-unchanged?
           +--rw ipv4-vpn-next-hop-address?
           +--rw ipv6-forwarding-address?
           +--rw ipv6-next-hop-global-address?
           +--rw ipv6-next-hop-local-address?
           +--rw ipv6-next-hop-prefer-global?
           +--rw ipv6-next-hop-prefer-peer?
           +--rw ipv6-vpn-next-hop-address?
           +--rw label-index?
           +--rw large-community*
           +--rw delete-large-community-list?
           +--rw metric-type?
           +--rw (value)?
           |  +--:(set-metric)
           |  |  +--rw set-metric?
           |  +--:(add-metric)
           |  |  +--rw add-metric?
           |  +--:(subtract-metric)
           |  |  +--rw subtract-metric?
           |  +--:(use-round-trip-time)
           |  |  +--rw use-round-trip-time?
           |  +--:(add-round-trip-time)
           |  |  +--rw add-round-trip-time?
           |  +--:(subtract-round-trip-time)
           |     +--rw subtract-round-trip-time?
           +--rw (source-address)?
           |  +--:(ipv4-source-address)
           |  |  +--rw ipv4-source-address?
           |  +--:(ipv6-source-address)
           |     +--rw ipv6-source-address?
           +--rw table?
           +--rw tag?
```

**Table of Properties**

| **Name**                      | **Required** | **Type/Range**                         | **Description**                                                                                                                                                                                                                                                                                                                                                                     |
| ----------------------------- | ------------ | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| route-maps                    | M            |                                        | Path-only node, has no configurable value.                                                                                                                                                                                                                                                                                                                                          |
| name                          | M            | route-map-name                         | (sub-property of route-maps)<br />Route map instance name.                                                                                                                                                                                                                                                                                                                          |
| sequence-id                   | M            | 1..65535                               | (sub-property of route-maps)<br />Route map instance priority (low number means higher priority).                                                                                                                                                                                                                                                                                   |
| description                   | O            | string                                 | (sub-property of route-maps)<br />Route map description.                                                                                                                                                                                                                                                                                                                            |
| action                        | M            | "permit"<br />"deny"                   | (sub-property of route-maps)<br />Route map actions: permit (executes action), deny (quits evaluation).                                                                                                                                                                                                                                                                             |
| match-condition               | M            |                                        | (sub-property of route-maps)<br />Path-only node, has no configurable value.<br />Route map match conditions.                                                                                                                                                                                                                                                                       |
| as-path                       | O            | string                                 | (sub-property of match-condition)<br />Match BGP AS path list.                                                                                                                                                                                                                                                                                                                      |
| alias                         | O            | string                                 | (sub-property of match-condition)<br />Match BGP community alias name.                                                                                                                                                                                                                                                                                                              |
| community                     | O            | string                                 | (sub-property of match-condition)<br />Match BGP community list. Value in (1-99) For Standard Community-list number or Value in (100-500) Expanded Communitly-list number or Value of Community-list name                                                                                                                                                                           |
| extended-community            | O            | string                                 | (sub-property of match-condition)<br />Match BGP/VPN extended community list. Value in (1-99) For Standard Extended Community-list number or Value in (100-500) Expanded Extended Communitly-list number or Value of Extended Community-list name                                                                                                                                   |
| large-community               | O            | string                                 | (sub-property of match-condition)<br />Match BGP large community list. Value in (1-99) For Standard Large Community-list number or Value in (100-500) Expanded Large Communitly-list number or Value of Large Community-list name                                                                                                                                                   |
| local-preference              | O            | 0..4294967295                          | (sub-property of match-condition)<br />Match BGP local-preference of route.                                                                                                                                                                                                                                                                                                         |
| origin                        | O            | "egp"<br />"igp"<br />"incomplete"     | (sub-property of match-condition)<br />Match BGP origin code.                                                                                                                                                                                                                                                                                                                       |
| default-route                 | O            | "true"<br />"false"                    | (sub-property of match-condition)<br />default EVPN type-5 route.                                                                                                                                                                                                                                                                                                                   |
| route-distinguisher           | O            | string                                 | (sub-property of match-condition)<br />Route Distinguisher, ASN\:XX or A.B.C.D\:XX.                                                                                                                                                                                                                                                                                                 |
| route-type                    | O            | "macip"<br />"multicast"<br />"prefix" | (sub-property of match-condition)<br />Specify Route type.                                                                                                                                                                                                                                                                                                                          |
| vni                           | O            | 1..16777215                            | (sub-property of match-condition)<br />Match VNI.                                                                                                                                                                                                                                                                                                                                   |
| interface                     | O            | Interface name                         | (sub-property of match-condition)<br />Match first hop interface of route.                                                                                                                                                                                                                                                                                                          |
| ipv4-prefix-list              | O            | prefix-list-name                       | (sub-property of match-condition)<br />Match an IPv4 prefix-list.                                                                                                                                                                                                                                                                                                                   |
| ipv4-prefix-len               | O            | 0..32                                  | (sub-property of match-condition)<br />Match prefix length of IP address.                                                                                                                                                                                                                                                                                                           |
| ipv4-next-hop-address         | O            | A.B.C.D                                | (sub-property of match-condition)<br />Match an IPv4 next-hop address.                                                                                                                                                                                                                                                                                                              |
| ipv4-next-hop-prefix-list     | O            | prefix-list-name                       | (sub-property of match-condition)<br />Match an IPv4 next-hop prefix list.                                                                                                                                                                                                                                                                                                          |
| ipv4-next-hop-type            | O            | "blackhole"                            | (sub-property of match-condition)<br />Match an IPv4 next-hop type.                                                                                                                                                                                                                                                                                                                 |
| ipv4-next-hop-prefix-len      | O            | 0..32                                  | (sub-property of match-condition)<br />Match IPv4 prefixlen of given nexthop.                                                                                                                                                                                                                                                                                                       |
| ipv4-route-source-prefix-list | O            | prefix-list-name                       | (sub-property of match-condition)<br />Match advertising source IPv4 address of route.                                                                                                                                                                                                                                                                                              |
| ipv6-prefix-list              | O            | prefix-list-name                       | (sub-property of match-condition)<br />Match an IPv6 prefix-list.                                                                                                                                                                                                                                                                                                                   |
| ipv6-prefix-len               | O            | 0..128                                 | (sub-property of match-condition)<br />Match prefix length of IPv6 address.                                                                                                                                                                                                                                                                                                         |
| ipv6-next-hop-address         | O            | XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX         | (sub-property of match-condition)<br />Match an IPv6 next-hop address.                                                                                                                                                                                                                                                                                                              |
| ipv6-next-hop-prefix-list     | O            | prefix-list-name                       | (sub-property of match-condition)<br />Match an IPv6 next-hop prefix list.                                                                                                                                                                                                                                                                                                          |
| ipv6-next-hop-type            | O            | "blackhole"                            | (sub-property of match-condition)<br />Match an IPv6 next-hop type.                                                                                                                                                                                                                                                                                                                 |
| peer-ipv4-address             | O            | A.B.C.D                                | (sub-property of match-condition)<br />Mutually exclusive with:<br />- peer-ipv6-address<br />- peer-interface<br />- peer-local<br />IPv4 address of peer.                                                                                                                                                                                                                         |
| peer-ipv6-address             | O            | XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX         | (sub-property of match-condition)<br />Mutually exclusive with:<br />- peer-ipv4-address<br />- peer-interface<br />- peer-local<br />IPv6 address of peer.                                                                                                                                                                                                                         |
| peer-interface                | O            | Interface name                         | (sub-property of match-condition)<br />Mutually exclusive with:<br />- peer-ipv4-address<br />- peer-ipv6-address<br />- peer-local<br />Interface name of peer.                                                                                                                                                                                                                    |
| peer-local                    | O            | "true"<br />"false"                    | (sub-property of match-condition)<br />Mutually exclusive with:<br />- peer-ipv4-address<br />- peer-ipv6-address<br />- peer-interface<br />Static or Redistributed routes.                                                                                                                                                                                                        |
| metric                        | O            | 1..4294967295                          | (sub-property of match-condition)<br />Match a route metric.                                                                                                                                                                                                                                                                                                                        |
| probability                   | O            | 0..100                                 | (sub-property of match-condition)<br />Match portion of routes defined by percentage value.                                                                                                                                                                                                                                                                                         |
| tag                           | O            | 1..4294967295                          | (sub-property of match-condition)<br />Match a route tag.                                                                                                                                                                                                                                                                                                                           |
| set-action                    | M            |                                        | (sub-property of route-maps)<br />Path-only node, has no configurable value.<br />Route map set actions.                                                                                                                                                                                                                                                                            |
| aggregator-as-number          | M            | 1..4294967295                          | (sub-property of set-action)<br />Set AS number of aggregator.                                                                                                                                                                                                                                                                                                                      |
| aggregator-ip-address         | M            | A.B.C.D                                | (sub-property of set-action)<br />Set IP address of aggregator.                                                                                                                                                                                                                                                                                                                     |
| exclude-as                    | O            | 1..4294967295                          | (sub-property of set-action)<br />Exclude from the as-path.                                                                                                                                                                                                                                                                                                                         |
| prepend-as                    | O            | 1..4294967295                          | (sub-property of set-action)<br />Mutually exclusive with:<br />- prepend-last-as<br />AS number to prepend.                                                                                                                                                                                                                                                                        |
| prepend-last-as               | O            | 1..10                                  | (sub-property of set-action)<br />Mutually exclusive with:<br />- prepend-as<br />Number of times to insert last-as.                                                                                                                                                                                                                                                                |
| atomic-aggregate              | O            | "true"<br />"false"                    | (sub-property of set-action)<br />Set BGP atomic aggregate attribute.                                                                                                                                                                                                                                                                                                               |
| community                     | O            | string                                 | (sub-property of set-action)<br />Set BGP community attribute. Community number in AA\:NN format (where AA and NN are (0-65535)) or local-AS\|no-advertise\|no-export\|internet\|graceful-shutdown\|accept-own-nexthop\|accept-own \|route-filter-translated-v4\|route-filter-v4\|route-filter-translated-v6\|route-filter-v6 \|llgr-stale\|no-llgr\|blackhole\|no-peer or additive |
| delete-community-list         | O            | string                                 | (sub-property of set-action)<br />set BGP community list (for deletion). Value in (1-99) For Standard Community-list number or Value in (100-500) Expanded Communitly-list number or Value of Community-list name                                                                                                                                                                   |
| distance                      | O            | 0..255                                 | (sub-property of set-action)<br />Set BGP Administrative Distance to use.                                                                                                                                                                                                                                                                                                           |
| local-preference              | O            | 0..4294967295                          | (sub-property of set-action)<br />Set BGP local-preference of route.                                                                                                                                                                                                                                                                                                                |
| origin                        | O            | "egp"<br />"igp"<br />"incomplete"     | (sub-property of set-action)<br />Match BGP origin code.                                                                                                                                                                                                                                                                                                                            |
| originator-id                 | O            | A.B.C.D                                | (sub-property of set-action)<br />Set BGP originator ID attribute.                                                                                                                                                                                                                                                                                                                  |
| sr-te-color                   | O            | 1..4294967295                          | (sub-property of set-action)<br />Set Color of the SR-TE Policies to match with.                                                                                                                                                                                                                                                                                                    |
| weight                        | O            | 0..4294967295                          | (sub-property of set-action)<br />Set BGP weight for routing table.                                                                                                                                                                                                                                                                                                                 |
| ipv4-gateway                  | O            | A.B.C.D                                | (sub-property of set-action)<br />Set IPv4 gateway for prefix advertisement route.                                                                                                                                                                                                                                                                                                  |
| ipv6-gateway                  | O            | XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX         | (sub-property of set-action)<br />Set IPv6 gateway for prefix advertisement route.                                                                                                                                                                                                                                                                                                  |
| bandwidth-value               | O            | 1..25600                               | (sub-property of set-action)<br />Mutually exclusive with:<br />- bandwidth-cumulative<br />- bandwidth-num-multipaths                                                                                                                                                                                                                                                              |
| bandwidth-cumulative          | O            | "true"<br />"false"                    | (sub-property of set-action)<br />Mutually exclusive with:<br />- bandwidth-value<br />- bandwidth-num-multipaths<br />Cumulative bandwidth of all multipaths (outbound-only).                                                                                                                                                                                                      |
| bandwidth-num-multipaths      | O            | "true"<br />"false"                    | (sub-property of set-action)<br />Mutually exclusive with:<br />- bandwidth-value<br />- bandwidth-cumulative<br />Internally computed bandwidth based on number of multipaths (outbound-only).                                                                                                                                                                                     |
| bandwidth-non-transitive      | O            | "true"<br />"false"                    | (sub-property of set-action)<br />Attribute is set as non-transitive.                                                                                                                                                                                                                                                                                                               |
| route-target                  | O            | string                                 | (sub-property of set-action)<br />Route Target extended community in ASN\:NN or IP-ADDRESS\:NN format (where ASN (0-4294967295), NN (0-65535))                                                                                                                                                                                                                                      |
| site-of-origin                | O            | string                                 | (sub-property of set-action)<br />Site-of-Origin extended community in ASN\:NN or IP-ADDRESS\:NN format (where ASN (0-4294967295), NN (0-65535))                                                                                                                                                                                                                                    |
| ipv4-next-hop-address         | O            | A.B.C.D                                | (sub-property of set-action)<br />Mutually exclusive with:<br />- ipv4-next-hop-peer-address<br />- ipv4-next-hop-unchanged                                                                                                                                                                                                                                                         |
| ipv4-next-hop-peer-address    | O            | "true"<br />"false"                    | (sub-property of set-action)<br />Mutually exclusive with:<br />- ipv4-next-hop-address<br />- ipv4-next-hop-unchanged                                                                                                                                                                                                                                                              |
| ipv4-next-hop-unchanged       | O            | "true"<br />"false"                    | (sub-property of set-action)<br />Mutually exclusive with:<br />- ipv4-next-hop-address<br />- ipv4-next-hop-peer-address                                                                                                                                                                                                                                                           |
| ipv4-vpn-next-hop-address     | O            | A.B.C.D                                | (sub-property of set-action)<br />Set IPv4 VPN next-hop address.                                                                                                                                                                                                                                                                                                                    |
| ipv6-forwarding-address       | O            | XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX         | (sub-property of set-action)<br />IPv6 Forwarding Address.                                                                                                                                                                                                                                                                                                                          |
| ipv6-next-hop-global-address  | O            | XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX         | (sub-property of set-action)<br />Set IPv6 global address of next hop.                                                                                                                                                                                                                                                                                                              |
| ipv6-next-hop-local-address   | O            | XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX         | (sub-property of set-action)<br />Set IPv6 local address of next hop.                                                                                                                                                                                                                                                                                                               |
| ipv6-next-hop-prefer-global   | O            | "true"<br />"false"                    | (sub-property of set-action)<br />Prefer global over link-local if both exist.                                                                                                                                                                                                                                                                                                      |
| ipv6-next-hop-prefer-peer     | O            | "true"<br />"false"                    | (sub-property of set-action)<br />Use peer address (for BGP only).                                                                                                                                                                                                                                                                                                                  |
| ipv6-vpn-next-hop-address     | O            | XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX         | (sub-property of set-action)<br />Set IPv6 VPN next-hop address.                                                                                                                                                                                                                                                                                                                    |
| label-index                   | O            | 0..1048560                             | (sub-property of set-action)<br />Set Label index to associate with the prefix.                                                                                                                                                                                                                                                                                                     |
| large-community               | O            | string                                 | (sub-property of set-action)<br />Large Community number in aa\:bb\:cc(where aa, bb anc cc are (0-4294967295)) format or additive.                                                                                                                                                                                                                                                  |
| delete-large-community-list   | O            | string                                 | (sub-property of set-action)<br />set BGP large community list (for deletion). Value in (1-99) For Standard Large Community-list number or Value in (100-500) Expanded Large Communitly-list number or Value of Large Community-list name                                                                                                                                           |
| metric-type                   | O            | "type-1"<br />"type-2"                 | (sub-property of set-action)<br />Set type of metric                                                                                                                                                                                                                                                                                                                                |
| set-metric                    | O            | 0..4294967295                          | (sub-property of set-action)<br />Mutually exclusive with:<br />- add-metric<br />- subtract-metric<br />- use-round-trip-time<br />- add-round-trip-time<br />- subtract-round-trip-time<br />Use the following metric value.                                                                                                                                                      |
| add-metric                    | O            | 0..4294967295                          | (sub-property of set-action)<br />Mutually exclusive with:<br />- set-metric<br />- subtract-metric<br />- use-round-trip-time<br />- add-round-trip-time<br />- subtract-round-trip-time<br />Add value to metric.                                                                                                                                                                 |
| subtract-metric               | O            | 0..4294967295                          | (sub-property of set-action)<br />Mutually exclusive with:<br />- set-metric<br />- add-metric<br />- use-round-trip-time<br />- add-round-trip-time<br />- subtract-round-trip-time<br />Subtract value from metric.                                                                                                                                                               |
| use-round-trip-time           | O            | "true"<br />"false"                    | (sub-property of set-action)<br />Mutually exclusive with:<br />- set-metric<br />- add-metric<br />- subtract-metric<br />- add-round-trip-time<br />- subtract-round-trip-time<br />Use the round trip time as metric.                                                                                                                                                            |
| add-round-trip-time           | O            | "true"<br />"false"                    | (sub-property of set-action)<br />Mutually exclusive with:<br />- set-metric<br />- add-metric<br />- subtract-metric<br />- use-round-trip-time<br />- subtract-round-trip-time<br />Add round trip time to metric.                                                                                                                                                                |
| subtract-round-trip-time      | O            | "true"<br />"false"                    | (sub-property of set-action)<br />Mutually exclusive with:<br />- set-metric<br />- add-metric<br />- subtract-metric<br />- use-round-trip-time<br />- add-round-trip-time<br />Subtract round trip time to metric.                                                                                                                                                                |
| ipv4-source-address           | O            | A.B.C.D                                | (sub-property of set-action)<br />Mutually exclusive with:<br />- ipv6-source-address                                                                                                                                                                                                                                                                                               |
| ipv6-source-address           | O            | XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX         | (sub-property of set-action)<br />Mutually exclusive with:<br />- ipv4-source-address                                                                                                                                                                                                                                                                                               |
| table                         | O            | 1..4294967295                          | (sub-property of set-action)<br />Kernel routing table id.                                                                                                                                                                                                                                                                                                                          |
| tag                           | O            | 0..4294967295                          | (sub-property of set-action)<br />Tag value.                                                                                                                                                                                                                                                                                                                                        |

### <font color="#1d50a2">Show route map</font>

**Tree Diagrams**

```plaintext
    +---x show-route-map-json
       +---w input
       |  +---w name?
       +--ro output
          +--ro data?
```

**Table of Properties**

| **Name**            | **Required** | **Type/Range** | **Description**                                                             |
| ------------------- | ------------ | -------------- | --------------------------------------------------------------------------- |
| show-route-map-json | M            |                | Path-only node, has no configurable value.<br />Show route-map information. |
| name                | O            | string         | (sub-property of input)<br />Name of a route-map.                           |
| data                | RO           | \<anydata>     | (sub-property of output)                                                    |

