Skip to content
Ask AI

Routemap-Netconf

YANG Pathget/get-configedit-configrpc
/route-maps/{name}/{sequence-id}Ymerge, replace, create, delete—
/show-route-map-json——Y
<filter type="subtree">
<top>
<route-maps>
<route-map/>
</route-maps>
</filter>
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<top>
<route-maps xmlns="http://asterfusion.com/ns/yang/asternos-route-map">
<route-map>
<name>test</name>
<sequence-id>11</sequence-id>
<action>permit</action>
<match-condition>
<as-path>65000:100</as-path>
<alias>EXAMPLE_ALIAS</alias>
<community>65000:100</community>
<extended-community>RT:65000:100</extended-community>
<large-community>65000:100:200</large-community>
<local-preference>100</local-preference>
<origin>igp</origin>
<interface>Ethernet1</interface>
<ipv4-prefix-list>EXAMPLE_IPV4_PREFIX_LIST</ipv4-prefix-list>
<ipv4-prefix-len>24</ipv4-prefix-len>
<ipv4-next-hop-address>192.168.1.1</ipv4-next-hop-address>
<ipv4-next-hop-prefix-list>EXAMPLE_NEXT_HOP_PREFIX_LIST</ipv4-next-hop-prefix-list>
<ipv4-next-hop-type>blackhole</ipv4-next-hop-type>
<ipv4-next-hop-prefix-len>24</ipv4-next-hop-prefix-len>
<ipv4-route-source-prefix-list>EXAMPLE_ROUTE_SOURCE_PREFIX_LIST</ipv4-route-source-prefix-list>
<ipv6-prefix-list>EXAMPLE_IPV6_PREFIX_LIST</ipv6-prefix-list>
<ipv6-prefix-len>64</ipv6-prefix-len>
<ipv6-next-hop-address>2001:db8::1</ipv6-next-hop-address>
<ipv6-next-hop-prefix-list>EXAMPLE_IPV6_NEXT_HOP_PREFIX_LIST</ipv6-next-hop-prefix-list>
<ipv6-next-hop-type>blackhole</ipv6-next-hop-type>
<peer-ipv4-address>192.168.1.2</peer-ipv4-address>
<metric>100</metric>
<tag>200</tag>
<source-instance>1</source-instance>
<source-protocol>bgp</source-protocol>
</match-condition>
<set-action>
<aggregator-as-number>65000</aggregator-as-number>
<aggregator-ip-address>192.168.1.1</aggregator-ip-address>
<exclude-as>65001</exclude-as>
<prepend-as>65000</prepend-as>
<atomic-aggregate>true</atomic-aggregate>
<community>65000:100</community>
<delete-community-list>EXAMPLE_DELETE_COMMUNITY_LIST</delete-community-list>
<distance>200</distance>
<local-preference>150</local-preference>
<origin>igp</origin>
<originator-id>192.168.1.1</originator-id>
<weight>100</weight>
<bandwidth-value>1000</bandwidth-value>
<bandwidth-non-transitive>true</bandwidth-non-transitive>
<ipv4-next-hop-address>192.168.1.1</ipv4-next-hop-address>
<ipv4-vpn-next-hop-address>192.168.1.1</ipv4-vpn-next-hop-address>
<ipv6-forwarding-address>2001:db8::1</ipv6-forwarding-address>
<ipv6-next-hop-global-address>2001:db8::1</ipv6-next-hop-global-address>
<ipv6-next-hop-local-address>fe80::1</ipv6-next-hop-local-address>
<ipv6-next-hop-prefer-global>true</ipv6-next-hop-prefer-global>
<ipv6-next-hop-prefer-peer>true</ipv6-next-hop-prefer-peer>
<ipv6-vpn-next-hop-address>2001:db8::1</ipv6-vpn-next-hop-address>
<large-community>65000:100:200</large-community>
<delete-large-community-list>EXAMPLE_DELETE_LARGE_COMMUNITY_LIST</delete-large-community-list>
<metric-type>type-1</metric-type>
<set-metric>100</set-metric>
<ipv4-source-address>192.168.1.1</ipv4-source-address>
<table>100</table>
<tag>200</tag>
</set-action>
<on-match>
<goto>20</goto>
</on-match>
</route-map>
</route-maps>
</data>
<config><top>
<route-maps>
<route-map operation="create">
<name>test</name>
<sequence-id>11</sequence-id>
<action>permit</action>
<match-condition>
<as-path>65000:100</as-path>
<alias>EXAMPLE_ALIAS</alias>
<community>65000:100</community>
<extended-community>RT:65000:100</extended-community>
<large-community>65000:100:200</large-community>
<local-preference>100</local-preference>
<origin>igp</origin>
<metric>100</metric>
<tag>200</tag>
<source-instance>1</source-instance>
<source-protocol>bgp</source-protocol>
</match-condition>
<set-action>
<aggregator-as-number>65000</aggregator-as-number>
<aggregator-ip-address>192.168.1.1</aggregator-ip-address>
<exclude-as>65001</exclude-as>
<prepend-as>65000</prepend-as>
<atomic-aggregate>true</atomic-aggregate>
<community>65000:100</community>
<delete-community-list>EXAMPLE_DELETE_COMMUNITY_LIST</delete-community-list>
<distance>200</distance>
<local-preference>150</local-preference>
<origin>igp</origin>
<originator-id>192.168.1.1</originator-id>
<weight>100</weight>
<ipv4-source-address>192.168.1.1</ipv4-source-address>
<table>100</table>
<tag>200</tag>
</set-action>
<on-match>
<goto>20</goto>
</on-match>
</route-map>
</route-maps>
</top></config>
<config><top>
<route-maps>
<route-map operation="delete">
<name>test</name>
<sequence-id>11</sequence-id>
<action>permit</action>
</route-map>
</route-maps>
</top></config>
<show-route-map-json/>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:01d878ea-386f-4333-a085-f26be6234b5b">
<data>
<ZEBRA>
<test>
<invoked>0</invoked>
<disabledOptimization>False</disabledOptimization>
<processedChange>False</processedChange>
<rules>
<sequenceNumber>11</sequenceNumber>
<type>permit</type>
<invoked>0</invoked>
<action>Exit routemap</action>
</rules>
</test>
</ZEBRA>
<OSPF>
<test>
<invoked>0</invoked>
<disabledOptimization>False</disabledOptimization>
<processedChange>False</processedChange>
<rules>
<sequenceNumber>11</sequenceNumber>
<type>permit</type>
<invoked>0</invoked>
<action>Exit routemap</action>
</rules>
</test>
</OSPF>
<OSPF6>
<test>
<invoked>0</invoked>
<disabledOptimization>False</disabledOptimization>
<processedChange>False</processedChange>
<rules>
<sequenceNumber>11</sequenceNumber>
<type>permit</type>
<invoked>0</invoked>
<action>Exit routemap</action>
</rules>
</test>
</OSPF6>
<BGP>
<test>
<invoked>0</invoked>
<disabledOptimization>False</disabledOptimization>
<processedChange>False</processedChange>
<rules>
<sequenceNumber>11</sequenceNumber>
<type>permit</type>
<invoked>0</invoked>
<action>Exit routemap</action>
</rules>
</test>
</BGP>
<ISIS>
<test>
<invoked>0</invoked>
<disabledOptimization>False</disabledOptimization>
<processedChange>False</processedChange>
<rules>
<sequenceNumber>11</sequenceNumber>
<type>permit</type>
<invoked>0</invoked>
<action>Exit routemap</action>
</rules>
</test>
</ISIS>
</data>
</rpc-reply>

Tree Diagram

/workspaces/as-mgmt-doc/doc/resource/yang/asternos-route-map.yang:158: error: unexpected keyword "error-message"
/workspaces/as-mgmt-doc/doc/resource/yang/asternos-route-map.yang:159: error: unexpected keyword "error-app-tag"
module: asternos-route-map
+--rw route-maps
+--rw route-map* [name sequence-id]
+--rw name route-map-name
+--rw sequence-id route-map-sequence
+--rw description? string
+--rw action enumeration
+--rw match-condition
| +--rw as-path? string
| +--rw alias? string
| +--rw community? string
| +--rw extended-community? string
| +--rw large-community? string
| +--rw local-preference? uint32
| +--rw origin? enumeration
| +--rw interface? union
| +--rw ipv4-prefix-list? filter:prefix-list-name
| +--rw ipv4-prefix-len? uint8
| +--rw ipv4-next-hop-address? inet:ipv4-address-no-zone
| +--rw ipv4-next-hop-prefix-list? filter:prefix-list-name
| +--rw ipv4-next-hop-type? enumeration
| +--rw ipv4-next-hop-prefix-len? uint8
| +--rw ipv4-route-source-prefix-list? filter:prefix-list-name
| +--rw ipv6-prefix-list? filter:prefix-list-name
| +--rw ipv6-prefix-len? uint8
| +--rw ipv6-next-hop-address? inet:ipv6-address-no-zone
| +--rw ipv6-next-hop-prefix-list? filter:prefix-list-name
| +--rw ipv6-next-hop-type? enumeration
| +--rw (peer-value)?
| | +--:(peer-ipv4-address)
| | | +--rw peer-ipv4-address? inet:ipv4-address-no-zone
| | +--:(peer-ipv6-address)
| | | +--rw peer-ipv6-address? inet:ipv6-address-no-zone
| | +--:(peer-interface)
| | | +--rw peer-interface? if:interface-ref
| | +--:(peer-local)
| | +--rw peer-local? boolean
| +--rw metric? uint32
| +--rw tag? uint32
| +--rw source-instance? uint32
| +--rw source-protocol? protocol-types
| +--rw source-vrf? vrf:vrf-ref
+--rw set-action
| +--rw aggregator-as-number uint32
| +--rw aggregator-ip-address inet:ipv4-address-no-zone
| +--rw exclude-as* uint32
| +--rw (prepend)?
| | +--:(prepend-as)
| | | +--rw prepend-as* uint32
| | +--:(prepend-last-as)
| | +--rw prepend-last-as? uint8
| +--rw atomic-aggregate? boolean
| +--rw community* string
| +--rw delete-community-list? string
| +--rw distance? uint8
| +--rw local-preference? uint32
| +--rw origin? enumeration
| +--rw originator-id? inet:ipv4-address-no-zone
| +--rw weight? uint32
| +--rw (bandwidth)
| | +--:(bandwidth)
| | | +--rw bandwidth-value? uint16
| | +--:(bandwidth-cumulative)
| | | +--rw bandwidth-cumulative? boolean
| | +--:(bandwidth-num-multipaths)
| | +--rw bandwidth-num-multipaths? boolean
| +--rw bandwidth-non-transitive? boolean
| +--rw (next-hop)?
| | +--:(ipv4-next-hop-address)
| | | +--rw ipv4-next-hop-address? inet:ipv4-address-no-zone
| | +--:(ipv4-next-hop-peer-address)
| | | +--rw ipv4-next-hop-peer-address? boolean
| | +--:(ipv4-next-hop-unchanged)
| | +--rw ipv4-next-hop-unchanged? boolean
| +--rw ipv4-vpn-next-hop-address? inet:ipv4-address-no-zone
| +--rw ipv6-forwarding-address? inet:ipv6-address-no-zone
| +--rw ipv6-next-hop-global-address? inet:ipv6-address-no-zone
| +--rw ipv6-next-hop-local-address? inet:ipv6-address-no-zone
| +--rw ipv6-next-hop-prefer-global? boolean
| +--rw ipv6-next-hop-prefer-peer? boolean
| +--rw ipv6-vpn-next-hop-address? inet:ipv6-address-no-zone
| +--rw large-community* string
| +--rw delete-large-community-list? string
| +--rw metric-type? enumeration
| +--rw (value)?
| | +--:(set-metric)
| | | +--rw set-metric? uint32
| | +--:(add-metric)
| | | +--rw add-metric? uint32
| | +--:(use-round-trip-time)
| | | +--rw use-round-trip-time? boolean
| | +--:(add-round-trip-time)
| | | +--rw add-round-trip-time? boolean
| | +--:(subtract-round-trip-time)
| | +--rw subtract-round-trip-time? boolean
| +--rw (source-address)?
| | +--:(ipv4-source-address)
| | | +--rw ipv4-source-address? inet:ipv4-address-no-zone
| | +--:(ipv6-source-address)
| | +--rw ipv6-source-address? inet:ipv6-address-no-zone
| +--rw table? uint32
| +--rw tag? uint32
+--rw on-match
+--rw goto? uint32
+--rw next? boolean

Table of Properties

NameRequiredType/RangeDescription
route-mapsMPath-only node, has no configurable value.
route-mapMPath-only node, has no configurable value.
Route map instance.
nameOstring (length 1..64)Route map instance name.
sequence-idO1..65535Route map instance priority (low number means higher priority).
descriptionOstringRoute map description.
actionM”permit"
"deny”
Route map actions: permit (executes action), deny (quits evaluation).
match-conditionMPath-only node, has no configurable value.
Route map match conditions.
as-pathOstringMatch BGP AS path list.
aliasOstringMatch BGP community alias name.
communityOstringMatch 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-communityOstringMatch 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-communityOstringMatch 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..4294967295Match BGP local-preference of route.
originO”egp"
"igp"
"incomplete”
Match BGP origin code.
interfaceO→ asternos-interfaces:interface-refMatch first hop interface of route.
ipv4-prefix-listOfilter:prefix-list-nameMatch an IPv4 prefix-list.
ipv4-prefix-lenO0..32Match prefix length of IP address.
ipv4-next-hop-addressOinet:ipv4-address-no-zoneMatch an IPv4 next-hop address.
ipv4-next-hop-prefix-listOfilter:prefix-list-nameMatch an IPv4 next-hop prefix list.
ipv4-next-hop-typeO”blackhole”Match an IPv4 next-hop type.
ipv4-next-hop-prefix-lenO0..32Match IPv4 prefixlen of given nexthop.
ipv4-route-source-prefix-listOfilter:prefix-list-nameMatch advertising source IPv4 address of route.
ipv6-prefix-listOfilter:prefix-list-nameMatch an IPv6 prefix-list.
ipv6-prefix-lenO0..128Match prefix length of IPv6 address.
ipv6-next-hop-addressOinet:ipv6-address-no-zoneMatch an IPv6 next-hop address.
ipv6-next-hop-prefix-listOfilter:prefix-list-nameMatch an IPv6 next-hop prefix list.
ipv6-next-hop-typeO”blackhole”Match an IPv6 next-hop type.
peer-ipv4-addressOinet:ipv4-address-no-zoneIPv4 address of peer.
peer-ipv6-addressOinet:ipv6-address-no-zoneIPv6 address of peer.
peer-interfaceOif:interface-refInterface name of peer.
peer-localO”true"
"false”
Static or Redistributed routes.
metricO0..4294967295Match a route metric.
tagO0..4294967295Match a route tag.
source-instanceO0..255Match the protocol’s instance number.
source-protocolO”kernel"
"connected"
"static"
"ospf"
"ospf6"
"isis"
"bgp"
"table”
Match protocol via which the route was learnt.
source-vrfOvrf:vrf-refMatch source vrf.
set-actionMPath-only node, has no configurable value.
Route map set actions.
aggregator-as-numberM1..4294967295Set AS number of aggregator.
aggregator-ip-addressMinet:ipv4-address-no-zoneSet IP address of aggregator.
exclude-asO1..4294967295Exclude from the as-path.
prepend-asO1..4294967295AS number to prepend.
prepend-last-asO1..10Number of times to insert last-as.
atomic-aggregateO”true"
"false”
Set BGP atomic aggregate attribute.
communityOstringSet BGP community attribute.

Community number in AA:NN format (where AA and NN are (0-65535)) or local-AS
delete-community-listOstringset 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
distanceOintegerSet BGP Administrative Distance to use.
local-preferenceO0..4294967295Set BGP local-preference of route.
originO”egp"
"igp"
"incomplete”
Match BGP origin code.
originator-idOinet:ipv4-address-no-zoneSet BGP originator ID attribute.
weightO0..4294967295Set BGP weight for routing table.
bandwidth-valueO1..25600
bandwidth-cumulativeO”true"
"false”
Cumulative bandwidth of all multipaths (outbound-only).
bandwidth-num-multipathsO”true"
"false”
Internally computed bandwidth based on number of multipaths (outbound-only).
bandwidth-non-transitiveO”true"
"false”
Attribute is set as non-transitive.
ipv4-next-hop-addressOinet:ipv4-address-no-zone
ipv4-next-hop-peer-addressO”true"
"false”
ipv4-next-hop-unchangedO”true"
"false”
ipv4-vpn-next-hop-addressOinet:ipv4-address-no-zoneSet IPv4 VPN next-hop address.
ipv6-forwarding-addressOinet:ipv6-address-no-zoneIPv6 Forwarding Address.
ipv6-next-hop-global-addressOinet:ipv6-address-no-zoneSet IPv6 global address of next hop.
ipv6-next-hop-local-addressOinet:ipv6-address-no-zoneSet IPv6 local address of next hop.
ipv6-next-hop-prefer-globalO”true"
"false”
Set Don’t modify existing Next hop address.
ipv6-next-hop-prefer-peerO”true"
"false”
Use peer address (for BGP only).
ipv6-vpn-next-hop-addressOinet:ipv6-address-no-zoneSet IPv6 VPN next-hop address.
large-communityOstringLarge Community number in aa:bb:cc(where aa, bb anc cc are (0-4294967295)) format or additive.
delete-large-community-listOstringset 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”
Set type of metric
set-metricO0..4294967295Use the following metric value.
add-metricO0..4294967295Add value to metric.
use-round-trip-timeO”true"
"false”
Use the round trip time as metric.
add-round-trip-timeO”true"
"false”
Add round trip time to metric.
subtract-round-trip-timeO”true"
"false”
Subtract round trip time to metric.
ipv4-source-addressOinet:ipv4-address-no-zone
ipv6-source-addressOinet:ipv6-address-no-zone
tableO1..4294967295Kernel routing table id.
tagO0..4294967295Tag value.
on-matchMPath-only node, has no configurable value.
Exit policy on matches.
gotoO1..65535Goto Clause number.
nextO”true"
"false”
Next clause.

Tree Diagram

/workspaces/as-mgmt-doc/doc/resource/yang/asternos-route-map.yang:158: error: unexpected keyword "error-message"
/workspaces/as-mgmt-doc/doc/resource/yang/asternos-route-map.yang:159: error: unexpected keyword "error-app-tag"
module: asternos-route-map
rpcs:
+---x show-route-map-json
+---w input
| +---w name? route-map-name
+--ro output
+--ro data? <anydata>

Table of Properties

NameRequiredType/RangeDescription
show-route-map-jsonO
nameOstring (length 1..64)Name of a route-map.
dataOShow route-map information.