跳转到内容
Ask AI

Route Map

此内容尚不支持你的语言。

URLGETPOSTPATCHPUTDELETE
/rest/v1/running/route-maps/{name}/{sequence-id}YYYNY
/rest/v1/rpc/show-route-map-jsonNYNNN
POST HTTPS://{switch IP}/rest/v1/running/route-maps
{
"name": "test",
"sequence-id": 11,
"action": "deny",
"description": "test"
}
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
}
}
POST HTTPS://{switch IP}/rest/v1/rpc/show-route-map-json

response:

Tree Diagrams

+--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

NameRequiredType/RangeDescription
route-mapsMPath-only node, has no configurable value.
nameMroute-map-name(sub-property of route-maps) Route map instance name.
sequence-idM1..65535(sub-property of route-maps) Route map instance priority (low number means higher priority).
descriptionOstring(sub-property of route-maps) Route map description.
actionM”permit""deny”(sub-property of route-maps) Route map actions: permit (executes action), deny (quits evaluation).
match-conditionM(sub-property of route-maps) Path-only node, has no configurable value. Route map match conditions.
as-pathOstring(sub-property of match-condition) Match BGP AS path list.
aliasOstring(sub-property of match-condition) Match BGP community alias name.
communityOstring(sub-property of match-condition) 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-communityOstring(sub-property of match-condition) 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-communityOstring(sub-property of match-condition) 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-preferenceO0..4294967295(sub-property of match-condition) Match BGP local-preference of route.
originO”egp""igp""incomplete”(sub-property of match-condition) Match BGP origin code.
default-routeO”true""false”(sub-property of match-condition) default EVPN type-5 route.
route-distinguisherOstring(sub-property of match-condition) Route Distinguisher, ASN:XX or A.B.C.D:XX.
route-typeO”macip""multicast""prefix”(sub-property of match-condition) Specify Route type.
vniO1..16777215(sub-property of match-condition) Match VNI.
interfaceOInterface name(sub-property of match-condition) Match first hop interface of route.
ipv4-prefix-listOprefix-list-name(sub-property of match-condition) Match an IPv4 prefix-list.
ipv4-prefix-lenO0..32(sub-property of match-condition) Match prefix length of IP address.
ipv4-next-hop-addressOA.B.C.D(sub-property of match-condition) Match an IPv4 next-hop address.
ipv4-next-hop-prefix-listOprefix-list-name(sub-property of match-condition) Match an IPv4 next-hop prefix list.
ipv4-next-hop-typeO”blackhole”(sub-property of match-condition) Match an IPv4 next-hop type.
ipv4-next-hop-prefix-lenO0..32(sub-property of match-condition) Match IPv4 prefixlen of given nexthop.
ipv4-route-source-prefix-listOprefix-list-name(sub-property of match-condition) Match advertising source IPv4 address of route.
ipv6-prefix-listOprefix-list-name(sub-property of match-condition) Match an IPv6 prefix-list.
ipv6-prefix-lenO0..128(sub-property of match-condition) Match prefix length of IPv6 address.
ipv6-next-hop-addressOXX:XX:XX:XX:XX:XX:XX:XX(sub-property of match-condition) Match an IPv6 next-hop address.
ipv6-next-hop-prefix-listOprefix-list-name(sub-property of match-condition) Match an IPv6 next-hop prefix list.
ipv6-next-hop-typeO”blackhole”(sub-property of match-condition) Match an IPv6 next-hop type.
peer-ipv4-addressOA.B.C.D(sub-property of match-condition) Mutually exclusive with:
- peer-ipv6-address
- peer-interface
- peer-local
IPv4 address of peer.
peer-ipv6-addressOXX:XX:XX:XX:XX:XX:XX:XX(sub-property of match-condition) Mutually exclusive with:
- peer-ipv4-address
- peer-interface
- peer-local
IPv6 address of peer.
peer-interfaceOInterface name(sub-property of match-condition) Mutually exclusive with:
- peer-ipv4-address
- peer-ipv6-address
- peer-local
Interface name of peer.
peer-localO”true""false”(sub-property of match-condition) Mutually exclusive with:
- peer-ipv4-address
- peer-ipv6-address
- peer-interface
Static or Redistributed routes.
metricO1..4294967295(sub-property of match-condition) Match a route metric.
probabilityO0..100(sub-property of match-condition) Match portion of routes defined by percentage value.
tagO1..4294967295(sub-property of match-condition) Match a route tag.
set-actionM(sub-property of route-maps) Path-only node, has no configurable value. Route map set actions.
aggregator-as-numberM1..4294967295(sub-property of set-action) Set AS number of aggregator.
aggregator-ip-addressMA.B.C.D(sub-property of set-action) Set IP address of aggregator.
exclude-asO1..4294967295(sub-property of set-action) Exclude from the as-path.
prepend-asO1..4294967295(sub-property of set-action) Mutually exclusive with:
- prepend-last-as
AS number to prepend.
prepend-last-asO1..10(sub-property of set-action) Mutually exclusive with:
- prepend-as
Number of times to insert last-as.
atomic-aggregateO”true""false”(sub-property of set-action) Set BGP atomic aggregate attribute.
communityOstring(sub-property of set-action) 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-listOstring(sub-property of set-action) 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
distanceO0..255(sub-property of set-action) Set BGP Administrative Distance to use.
local-preferenceO0..4294967295(sub-property of set-action) Set BGP local-preference of route.
originO”egp""igp""incomplete”(sub-property of set-action) Match BGP origin code.
originator-idOA.B.C.D(sub-property of set-action) Set BGP originator ID attribute.
sr-te-colorO1..4294967295(sub-property of set-action) Set Color of the SR-TE Policies to match with.
weightO0..4294967295(sub-property of set-action) Set BGP weight for routing table.
ipv4-gatewayOA.B.C.D(sub-property of set-action) Set IPv4 gateway for prefix advertisement route.
ipv6-gatewayOXX:XX:XX:XX:XX:XX:XX:XX(sub-property of set-action) Set IPv6 gateway for prefix advertisement route.
bandwidth-valueO1..25600(sub-property of set-action) Mutually exclusive with:
- bandwidth-cumulative
- bandwidth-num-multipaths
bandwidth-cumulativeO”true""false”(sub-property of set-action) Mutually exclusive with:
- bandwidth-value
- bandwidth-num-multipaths
Cumulative bandwidth of all multipaths (outbound-only).
bandwidth-num-multipathsO”true""false”(sub-property of set-action) Mutually exclusive with:
- bandwidth-value
- bandwidth-cumulative
Internally computed bandwidth based on number of multipaths (outbound-only).
bandwidth-non-transitiveO”true""false”(sub-property of set-action) Attribute is set as non-transitive.
route-targetOstring(sub-property of set-action) Route Target extended community in ASN:NN or IP-ADDRESS:NN format (where ASN (0-4294967295), NN (0-65535))
site-of-originOstring(sub-property of set-action) Site-of-Origin extended community in ASN:NN or IP-ADDRESS:NN format (where ASN (0-4294967295), NN (0-65535))
ipv4-next-hop-addressOA.B.C.D(sub-property of set-action) Mutually exclusive with:
- ipv4-next-hop-peer-address
- ipv4-next-hop-unchanged
ipv4-next-hop-peer-addressO”true""false”(sub-property of set-action) Mutually exclusive with:
- ipv4-next-hop-address
- ipv4-next-hop-unchanged
ipv4-next-hop-unchangedO”true""false”(sub-property of set-action) Mutually exclusive with:
- ipv4-next-hop-address
- ipv4-next-hop-peer-address
ipv4-vpn-next-hop-addressOA.B.C.D(sub-property of set-action) Set IPv4 VPN next-hop address.
ipv6-forwarding-addressOXX:XX:XX:XX:XX:XX:XX:XX(sub-property of set-action) IPv6 Forwarding Address.
ipv6-next-hop-global-addressOXX:XX:XX:XX:XX:XX:XX:XX(sub-property of set-action) Set IPv6 global address of next hop.
ipv6-next-hop-local-addressOXX:XX:XX:XX:XX:XX:XX:XX(sub-property of set-action) Set IPv6 local address of next hop.
ipv6-next-hop-prefer-globalO”true""false”(sub-property of set-action) Prefer global over link-local if both exist.
ipv6-next-hop-prefer-peerO”true""false”(sub-property of set-action) Use peer address (for BGP only).
ipv6-vpn-next-hop-addressOXX:XX:XX:XX:XX:XX:XX:XX(sub-property of set-action) Set IPv6 VPN next-hop address.
label-indexO0..1048560(sub-property of set-action) Set Label index to associate with the prefix.
large-communityOstring(sub-property of set-action) Large Community number in aa:bb:cc(where aa, bb anc cc are (0-4294967295)) format or additive.
delete-large-community-listOstring(sub-property of set-action) 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-typeO”type-1""type-2”(sub-property of set-action) Set type of metric
set-metricO0..4294967295(sub-property of set-action) Mutually exclusive with:
- add-metric
- subtract-metric
- use-round-trip-time
- add-round-trip-time
- subtract-round-trip-time
Use the following metric value.
add-metricO0..4294967295(sub-property of set-action) Mutually exclusive with:
- set-metric
- subtract-metric
- use-round-trip-time
- add-round-trip-time
- subtract-round-trip-time
Add value to metric.
subtract-metricO0..4294967295(sub-property of set-action) Mutually exclusive with:
- set-metric
- add-metric
- use-round-trip-time
- add-round-trip-time
- subtract-round-trip-time
Subtract value from metric.
use-round-trip-timeO”true""false”(sub-property of set-action) Mutually exclusive with:
- set-metric
- add-metric
- subtract-metric
- add-round-trip-time
- subtract-round-trip-time
Use the round trip time as metric.
add-round-trip-timeO”true""false”(sub-property of set-action) Mutually exclusive with:
- set-metric
- add-metric
- subtract-metric
- use-round-trip-time
- subtract-round-trip-time
Add round trip time to metric.
subtract-round-trip-timeO”true""false”(sub-property of set-action) Mutually exclusive with:
- set-metric
- add-metric
- subtract-metric
- use-round-trip-time
- add-round-trip-time Subtract round trip time to metric.
ipv4-source-addressOA.B.C.D(sub-property of set-action) Mutually exclusive with:
- ipv6-source-address
ipv6-source-addressOXX:XX:XX:XX:XX:XX:XX:XX(sub-property of set-action) Mutually exclusive with:
- ipv4-source-address
tableO1..4294967295(sub-property of set-action) Kernel routing table id.
tagO0..4294967295(sub-property of set-action) Tag value.

Tree Diagrams

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

Table of Properties

NameRequiredType/RangeDescription
show-route-map-jsonMPath-only node, has no configurable value. Show route-map information.
nameOstring(sub-property of input) Name of a route-map.
dataRO(sub-property of output)