[openstack-dev] [Neutron][L3] [API]: API to get the list of router ports
Brian Haley
brian.haley at hp.com
Thu Aug 13 14:59:05 UTC 2015
On 08/13/2015 04:04 AM, Padmanabhan Krishnan wrote:
> Hello,
> Is there a Neutron public API to get the list of router ports? Something similar
> to what the command "neutron router-port-list {tenant}" gives.
router-port-list takes a router as an argument, not a tenant.
> I wasn't able to find one in the Neutron API doc as well as in
> "neutronclient/v2_0/client.py".
>
> I think with a combination of subnet_show, port_list, one can find the list of
> neutron router ports, but just wanted to see if there's an API already available.
$ neutron port-list -- --device_owner=network:router_interface
or 'router_interface_distributed' if you have DVR enabled.
-Brian
More information about the OpenStack-dev
mailing list