efa policy large-community-list create

Create large community list in XCO.

Syntax

efa policy large-community-list create [ --type string | --name string | --rule stringArray ]

Parameters

--type string
Specifies the type of large community list to create. Valid types are standard and extended.
--name string
Specifies the name of large community list.
--rule stringArray
Rule in format for large community: seq[seq-num],action[permit/deny], value[value: <NN:NN:NN> NN is 4 bytes] (or) ext-value[regular expresion].

Example: "seq[5],action[permit],std-value[10:20:30;50:60:70]" (or) "seq[4],action[deny],ext-value[^65000:.*_]".

Examples

efa policy large-community-list create –-name lgcomm1 –-type standard 
–-rule "seq[5],action[permit],std-value[10:10:10;20:20:20]" 

+---------------------+---------+--------+-------------------+-----------+ 
| Community List Name | Seq num | Action |     Std Value     | Ext Value | 
+---------------------+---------+--------+-------------------+-----------+ 
| lgcomm1             | 5       | permit | 10:10:10 20:20:20 |           | 
+---------------------+---------+--------+-------------------+-----------+ 
Community List details 
+------------+--------+--------+-----------------+ 
| IP Address | Result | Reason | Rollback reason | 
+------------+--------+--------+-----------------+ 
Device Results 
efa policy large-community-list create –-name lgcommExt1 –-type extended 
–-rule "seq[5],action[permit],ext-value[_645XX:.*:.*]" 

+---------------------+---------+--------+-------------------+--------------- + 
| Community List Name | Seq num | Action |     Std Value     |    Ext Value   | 
+---------------------+---------+--------+-------------------+----------------+ 
| lgcommExt1          | 5       | permit |                   |  _645XX:.*:.* | 
+---------------------+---------+--------+-------------------+--------------- + 
Community List details 
+------------+--------+--------+-----------------+ 
| IP Address | Result | Reason | Rollback reason | 
+------------+--------+--------+-----------------+ 
Device Results
efa policy large-community-list create --name lgcomm1 --type standard 
--rule "seq[15],action[permit],std-value[10:10:10;20:20:20]" 
                
+---------------------------+---------+--------+-------------------+-----------+ 
| Large Community List Name | Seq num | Action |     Std Value     | Ext Value | 
+---------------------------+---------+--------+-------------------+-----------+ 
| lgcomm1                   | 15      | permit | 10:10:10 20:20:20 |           | 
+---------------------------+---------+--------+-------------------+-----------+ 
Large Community List details 
+---------------+----------+--------------------------------------------------------------+-----------------+ 
|  IP Address   |  Result  |                            Reason                            | Rollback reason | 
+---------------+----------+--------------------------------------------------------------+-----------------+ 
| 10.139.44.159 | Failed   | Policy lgcomm1 type large-community-list seq# 15 operation   |                 | 
|               |          | failed on device 10.139.44.159 due to Reason: For seq        |                 | 
|               |          | 15: netconf rpc [error] '%Error: Same filter is already      |                 | 
|               |          | configured with sequence number 10.'                         |                 | 
+---------------+----------+--------------------------------------------------------------+-----------------+ 
| 10.139.44.160 | Rollback |                                                              |                 | 
+---------------+----------+--------------------------------------------------------------+-----------------+ 
Device Results