efa policy prefix-list list

Lists the prefix list on the specified devices.

Syntax

efa policy prefix-list list [ --type string | --ip string ]

Parameters

--type string
Specifies the type of prefix list. Valid type is [ipv4|ipv6].
--ip string
Specifies a comma-separated range of device IP addresses. For example: 10.1.1.13,10.1.1.50,10.1.1.101.

Examples

This example displays the IPv4 prefix list on two devices.

$ efa policy prefix-list list –-type ipv4 –-ip 10.20.246.10-11  
Prefix-list details: 

Name: prefix_v4_1 
+------+---------+--------+------------+----+----+---------------+-------------+ 
| Type | Seq num | Action |   Prefix   | Ge | Le |   DeviceIP    |  AppState   | 
+------+---------+--------+------------+----+----+---------------+-------------+ 
| ipv4 | 10      | permit | 10.0.0.0/8 | 16 |    | 10.20.246.10  | cfg-in-sync | 
+------+---------+--------+------------+----+----+---------------+-------------+ 
| ipv4 | 10      | permit | 10.0.0.0/8 | 16 |    | 10.20.246.11  | cfg-in-sync | 
+------+---------+--------+------------+----+----+---------------+-------------+ 
 
This example lists the IPv6 prefix lists on the specified devices.
efa policy prefix-list list --type ipv6 --ip 10.20.246.29-30 
				
Prefix-list details: 
				
Name: prefix_1_in 
+------+---------+--------+---------------+----+----+--------------+------------------+ 
| Type | Seq num | Action |    Prefix     | Ge | Le |   DeviceIP   |     AppState     | 
+------+---------+--------+---------------+----+----+--------------+------------------+ 
| ipv6 | 11      | permit | 2001:db8::/48 |    |    | 10.20.246.29 | cfg-in-sync      | 
+------+---------+--------+---------------+----+----+--------------+------------------+ 
| ipv6 | 11      | permit | 2001:db8::/48 |    |    | 10.20.246.30 | cfg-in-sync      | 
+------+---------+--------+---------------+----+----+--------------+------------------+
This example lists all prefix lists of type IPv6.
efa policy prefix-list list --type ipv6 
				
Prefix-list details: 
Name: prefix_1_in 
+------+---------+--------+---------------+----+----+ 
| Type | Seq num | Action |    Prefix     | Ge | Le | 
+------+---------+--------+---------------+----+----+ 
| ipv6 | 11      | permit | 2001:db8::/48 |    |    | 
+------+---------+--------+---------------+----+----+