You can configure an extended community list.
For supported commands on extended community list, see ExtremeCloud Orchestrator Command Reference, 3.2.1 .
efa policy extcommunity-list create
efa policy extcommunity-list create --name excommlist-1 --type standard --rule "seq[4],action[permit],soo[10.11.2.3:22]" efa policy extcommunity-list create --name excommlist-1 --type standard --rule "seq[5],action[deny],rt[1:345]" efa policy extcommunity-list create --name excommlist-1 --type standard --rule "seq[6],action[permit],rt[1:45],soo[10.11.2.3:22]" efa policy extcommunity-list create --name excommlist-1 --type standard --rule "seq[7],action[deny],rt[1:345],soo[6:12]" efa policy extcommunity-list create --name excommlist-2 --type extended --rule "seq[2],action[permit],ext-value[_15000_]" efa policy extcommunity-list create --name excommlist-2 --type extended --rule "seq[5],action[deny],ext-value[_20000_]" +--------------------+-----+--------+----+--------------+-------+ | Extended community | Seq | Action | Rt | Soo | Ext | | list name | num | | | | Value | +--------------------+-----+--------+----+--------------+-------+ | excommlist-1 | 4 | permit | | 10.11.2.3:22 | | +--------------------+-----+--------+----+--------------+-------+ Extended community list details +------------+--------+--------+-----------------+ | IP Address | Result | Reason | Rollback reason | +------------+--------+--------+-----------------+ Device Results +--------------------+-----+--------+-------+--------------+-------+ | Extended community | Seq | Action | Rt | Soo | Ext | | list name | num | | | | Value | +--------------------+-----+--------+-------+--------------+-------+ | excommlist-1 | 5 | deny | 1:345 | | | +--------------------+-----+--------+-------+--------------+-------+ Extended community list details +------------+--------+--------+-----------------+ | IP Address | Result | Reason | Rollback reason | +------------+--------+--------+-----------------+ Device Results +--------------------+-----+--------+------+--------------+-------+ | Extended community | Seq | Action | Rt | Soo | Ext | | list name | num | | | | Value | +--------------------+-----+--------+------+--------------+-------+ | excommlist-1 | 6 | permit | 1:45 | 10.11.2.3:22 | | +--------------------+-----+--------+------+--------------+-------+ Extended community list details +------------+--------+--------+-----------------+ | IP Address | Result | Reason | Rollback reason | +------------+--------+--------+-----------------+ Device Results +--------------------+-----+--------+----+-------+---------+ | Extended community | Seq | Action | Rt | Soo | Ext | | list name | num | | | | Value | +--------------------+-----+--------+----+-------+---------+ | excommlist-2 | 2 | permit | | | _15000_ | +--------------------+-----+--------+----+-------+---------+ Extended community list details +------------+--------+--------+-----------------+ | IP Address | Result | Reason | Rollback reason | +------------+--------+--------+-----------------+ Device Results +--------------------+-----+--------+----+-----+---------+ | Extended community | Seq | Action | Rt | Soo | Ext | | list name | num | | | | Value | +--------------------+-----+--------+----+-----+---------+ | excommlist-2 | 5 | deny | | | _20000_ | +--------------------+-----+--------+----+-----+---------+ Extended community list details +--------------------+-----+--------+---+-------------+------+ | Extended community | Seq | Action | Rt| Soo | Ext | | list name | num | | | | Value| +--------------------+-----+--------+---+-------------+------+ | excommlist-1 | 4 | permit | |10.11.2.3:22 | | +--------------------+-----+--------+---+-------------+------+ Extended community list details +------------+--------+--------+-----------------+ | IP Address | Result | Reason | Rollback reason | +------------+--------+--------+-----------------+ Device Results
efa policy extcommunity-list update
efa policy extcommunity-list update --name excommlist-1 --type standard --operation add-device --ip 10.20.246.29,10.20.246.30 +--------------------+-----+--------+-------+--------------+-------+ | Extended community | Seq | Action | Rt | Soo | Ext | | list name | num | | | | Value | +--------------------+-----+--------+-------+--------------+-------+ | excommlist-1 | 4 | permit | | 10.11.2.3:22 | | +--------------------+-----+--------+-------+--------------+-------+ | excommlist-1 | 5 | deny | 1:345 | | | +--------------------+-----+--------+-------+--------------+-------+ | excommlist-1 | 6 | permit | 1:45 | 10.11.2.3:22 | | +--------------------+-----+--------+-------+--------------+-------+ Extended community list details +--------------+---------+--------+-----------------+ | IP Address | Result | Reason | Rollback reason | +--------------+---------+--------+-----------------+ | 10.20.246.29 | Success | | | +--------------+---------+--------+-----------------+ | 10.20.246.30 | Success | | | +--------------+---------+--------+-----------------+ Device Results efa policy extcommunity-list update --name excommlist-2 --type extended --operation add-device --ip 10.20.246.29,10.20.246.30 +------------------------------+---------+--------+----+-----+-----------+ | Extended community list name | Seq num | Action | Rt | Soo | Ext Value | +------------------------------+---------+--------+----+-----+-----------+ | excommlist-2 | 2 | permit | | | _15000_ | +------------------------------+---------+--------+----+-----+-----------+ | excommlist-2 | 5 | deny | | | _20000_ | +------------------------------+---------+--------+----+-----+-----------+ Extended community list details +--------------+---------+--------+-----------------+ | IP Address | Result | Reason | Rollback reason | +--------------+---------+--------+-----------------+ | 10.20.246.29 | Success | | | +--------------+---------+--------+-----------------+ | 10.20.246.30 | Success | | | +--------------+---------+--------+-----------------+ Device Results
efa policy extcommunity-list update --name excommlist-2 --type extended --operation remove-device --ip 10.20.246.29,10.20.246.30 +------------------------------+---------+-----+---------+ | Extended community | Seq | Action | Rt | Soo | Ext | | list name | num | | | | Value | +--------------------+-----+--------+----+-----+---------+ | excommlist-2 | 2 | permit | | | _15000_ | +--------------------+-----+--------+----+-----+---------+ | excommlist-2 | 5 | deny | | | _25000_ | +--------------------+-----+--------+----+-----+---------+ Extended community list details +--------------+---------+--------+-----------------+ | IP Address | Result | Reason | Rollback reason | +--------------+---------+--------+-----------------+ | 10.20.246.29 | Success | | | +--------------+---------+--------+-----------------+ | 10.20.246.30 | Success | | | +--------------+---------+--------+-----------------+ Device Results efa policy extcommunity-list update --name excommlist-1 --type standard --operation remove-device --ip 10.20.246.29,10.20.246.30 +--------------------+-----+--------+-------+--------------+-------+ | Extended community | Seq | Action | Rt | Soo | Ext | | list name | num | | | | Value | +--------------------+-----+--------+-------+--------------+-------+ | excommlist-1 | 4 | permit | | 10.11.2.3:22 | | +--------------------+-----+--------+-------+--------------+-------+ | excommlist-1 | 5 | deny | 1:345 | | | +--------------------+-----+--------+-------+--------------+-------+ | excommlist-1 | 6 | permit | 1:45 | 10.11.2.3:22 | | +--------------------+-----+--------+-------+--------------+-------+ Extended community list details +--------------+--------+------------------------------------+----------+ | IP Address | Result | Reason | Rollback | | | | | reason | +--------------+--------+------------------------------------+----------+ | 10.20.246.29 | Failed | Device 10.20.246.29 not reachable. | | | | | Please retry after verifying the | | | | | inputs and connectivity issues | | +--------------+--------+------------------------------------+----------+ | 10.20.246.30 | Failed | Device 10.20.246.30 not reachable. | | | | | Please retry after verifying the | | | | | inputs and connectivity issues | | +--------------+--------+------------------------------------+----------+ Device Results
efa policy extcommunity-list update –-name excommlist-2 –-type extended –-operation update-rule –-rule "seq[5],action[deny],ext-value[_25000_]" +------------------------------+---------+--------+----+-----+-----------+ | Extended community list name | Seq num | Action | Rt | Soo | Ext Value | +------------------------------+---------+--------+----+-----+-----------+ | excommlist-2 | 5 | deny | | | _25000_ | +------------------------------+---------+--------+----+-----+-----------+ Extended community list details +--------------+---------+--------+-----------------+ | IP Address | Result | Reason | Rollback reason | +--------------+---------+--------+-----------------+ | 10.20.246.29 | Success | | | +--------------+---------+--------+-----------------+ | 10.20.246.30 | Success | | | +--------------+---------+--------+-----------------+ Device Results efa policy extcommunity-list update –-name excommlist-1 –-type standard –-operation update-rule –-rule "seq[5],action[permit],rt[0:123],soo[0:12]" +------------------------------+---------+--------+-------+------+-----------+ | Extended community list name | Seq num | Action | Rt | Soo | Ext Value | +------------------------------+---------+--------+-------+------+-----------+ | excommlist-1 | 5 | permit | 0:123 | 0:12 | | +------------------------------+---------+--------+-------+------+-----------+ Extended community list details +--------------+--------+------------------------------------------+---------+ | IP Address | Result | Reason | Rollback| | | | | reason | +--------------+--------+------------------------------------------+---------+ | 10.20.246.29 | Failed |Reason: For seq 5: netconf rpc [error] | | | | |'"rt 0:123 soo 0:12" is an invalid value.'| | +--------------+--------+------------------------------------------+---------+ | 10.20.246.30 | Failed |Reason: For seq 5: netconf rpc [error] | | | | |'"rt 0:123 soo 0:12" is an invalid value.'| | +--------------+--------+------------------------------------------+---------+ Device Results
efa policy extcommunity-list delete
efa policy extcommunity-list delete --name excommlist-2 --type extended --seq all +------------------------------+--------+--------+----+----+----------+ | Extended community list name | Seq num| Action | Rt |Soo | Ext Value| +------------------------------+--------+--------+----+----+----------+ | excommlist-2 | 2 | permit | | | _15000_ | +------------------------------+--------+--------+----+----+----------+ | excommlist-2 | 5 | deny | | | _25000_ | +------------------------------+--------+--------+----+----+----------+ Extended community list details +--------------+---------+--------+-----------------+ | IP Address | Result | Reason | Rollback reason | +--------------+---------+--------+-----------------+ | 10.20.246.29 | Success | | | +--------------+---------+--------+-----------------+ | 10.20.246.30 | Success | | | +--------------+---------+--------+-----------------+ Device Results
efa policy extcommunity-list list
efa policy extcommunity-list list Extended community list details: Name: excommlist-1 Seq: 5 Action: permit Route Target: 1:100 2:200 3:145 4:123 Site of Origin: 1.2.3.4:12 5:400 10.11.12.13:22 ExtValue: Name: excommlist-1 Seq: 6 Action: permit Route Target: 1:45 Site of Origin: 10.11.2.3:22 ExtValue: Name: excommlist-1 Seq: 9 Action: deny Route Target: 1:345 Site of Origin: 6:12 ExtValue: Name: excommlist-2 Seq: 2 Action: permit Route Target: Site of Origin: ExtValue: _15000_ efa policy extcommunity-list list --ip 10.20.246.29 --name excommlist-1 Extended community list details: Name: excommlist-1 Seq: 6 Action: permit Route Target: 1:45 Site of Origin: 10.11.2.3:22 ExtValue: Name: excommlist-1 Seq: 9 Action: deny Route Target: 1:345 Site of Origin: 6:12 ExtValue: IP Addresses: +--------------+-----+--------------+-------------+ | Name | Seq | IP Address | App State | +--------------+-----+--------------+-------------+ | excommlist-1 | 6 | 10.20.246.29 | cfg-in-sync | +--------------+-----+--------------+-------------+ | excommlist-1 | 9 | 10.20.246.29 | cfg-in-sync | +--------------+-----+--------------+-------------+ efa policy extcommunity-list list --ip 10.20.246.29 --name excommlist-2 Extended community list details: Name: excommlist-2 Seq: 2 Action: permit Route Target: Site of Origin: ExtValue: _15000_ Name: excommlist-2 Seq: 5 Action: deny Route Target: Site of Origin: ExtValue: _20000_ IP Addresses: +--------------+-----+--------------+-------------+ | Name | Seq | IP Address | App State | +--------------+-----+--------------+-------------+ | excommlist-2 | 2 | 10.20.246.29 | cfg-in-sync | +--------------+-----+--------------+-------------+ | excommlist-2 | 5 | 10.20.246.29 | cfg-in-sync | +--------------+-----+--------------+-------------+