efa policy route-map-match create

Creates the match criterion for a route map rule.

Syntax

efa policy route-map-match create [ --name route-map name | --rule string | --match-ipv4-prefix string | --match-ipv6-prefix string | --match-community-list string | --match-extcommunity-list string | --match-largecommunity-list string ]

Parameters

--name route-map name
Specifies the name of the route map.
--rule string
Specifies the rule in the following format: seq[seq-num],action[permit/deny]. Example: seq[5],action[permit].
--match-ipv4-prefix string
Specifies the name of the IPv4 prefix list that contains the rule that you want to match.
--match-ipv6-prefix string
Specifies the name of the IPv6 prefix list that contains the rule that you want to match.
--match-community-list string
Specifies the community list name.
--match-extcommunity-list string
Specifies the extcommunity list name.
--match-largecommunity-list string
Specifies the large community list name.

Usage Guidelines

There is no seperate CLI to display the route-map match criteria. The information is shown in efa policy route-map list.

Examples

efa policy route-map-match create –-name rmap_1 
–-rule seq[5],action[permit] --match-ipv4-prefix prefix_1

efa policy route-map-match create --name telco_3
_in --rule seq[14],action[permit] --match-ipv4-prefix prefix_1_in

efa policy route-map-match create --name telco_3_in
 --rule seq[14],action[permit] --match-community-list commList1 --match-extcommunity-list excommList1
efa policy route-map-match create --name foo
 --rule seq[10],action[permit] --match-extcommunity-list extFoo
efa policy route-map-match create --name rmap_test 
--rule "seq[11],action[permit]" --match-ipv6-prefix prefix_1_in 
+----------------+---------+--------+ 
| Route Map Name | Seq num | Action | 
+----------------+---------+--------+ 
| rmap_test      | 11      | permit | 
+----------------+---------+--------+ 
Route Map details 
+--------------+---------+--------+-----------------+ 
|  IP Address  | Result  | Reason | Rollback reason | 
+--------------+---------+--------+-----------------+ 
| 10.20.246.29 | Success |        |                 | 
+--------------+---------+--------+-----------------+ 
| 10.20.246.30 | Success |        |                 | 
+--------------+---------+--------+-----------------+ 
Device Results
efa policy route-map-match create --name rmap_test 
--rule "seq[11],action[permit]" --match-ipv6-prefix prefix_1_in 
+----------------+---------+--------+ 
| Route Map Name | Seq num | Action | 
+----------------+---------+--------+ 
| rmap_test      | 11      | permit | 
+----------------+---------+--------+ 
Route Map details 
+--------------+---------+--------+-----------------+ 
|  IP Address  | Result  | Reason | Rollback reason | 
+--------------+---------+--------+-----------------+ 
| 10.20.246.29 | Success |        |                 | 
+--------------+---------+--------+-----------------+ 
| 10.20.246.30 | Success |        |                 | 
+--------------+---------+--------+-----------------+ 
Device Results 
			
efa policy route-map-match delete --name rmap_test 
--rule "seq[10],action[permit]" --match-ipv6-prefix prefix_1_in 
+----------------+---------+--------+ 
| Route Map Name | Seq num | Action | 
+----------------+---------+--------+ 
| rmap_test      | 10      | permit | 
+----------------+---------+--------+ 
Route Map details 
+--------------+---------+--------+-----------------+ 
|  IP Address  | Result  | Reason | Rollback reason | 
+--------------+---------+--------+-----------------+ 
| 10.20.246.29 | Success |        |                 | 
+--------------+---------+--------+-----------------+ 
| 10.20.246.30 | Success |        |                 | 
+--------------+---------+--------+-----------------+ 
Device Results