[openstack-dev] [Openstack] [openstack] API to get tunnel port connect to other host

Vikash Kumar vikash.kumar at oneconvergence.com
Sat Apr 29 06:13:34 UTC 2017


Hi James,

   I was asking for the tunnel ports on br-tun on every compute.

sudo ovs-vsctl list-ifaces br-tun
patch-int

*vxlan-c0a80265vxlan-c0a802b1*



On Fri, Apr 28, 2017 at 8:41 PM, James Denton <james.denton at rackspace.com>
wrote:

> Hi Vikash,
>
>
>
> The VXLAN tunnel endpoint address is listed in the output of a neutron
> agent-show <agent name/id>:
>
>
>
> $ neutron agent-show cb45e3f8-4a28-475a-994d-83bc27806c38
>
> +---------------------+----------------------------------------+
>
> | Field               | Value                                  |
>
> +---------------------+----------------------------------------+
>
> | admin_state_up      | True                                   |
>
> | agent_type          | Linux bridge agent                     |
>
> | alive               | True                                   |
>
> | availability_zone   |                                        |
>
> | binary              | neutron-linuxbridge-agent              |
>
> | configurations      | {                                      |
>
> |                     |      "tunneling_ip": "172.29.232.66",  |
>
> |                     |      "devices": 2,                     |
>
> |                     |      "interface_mappings": {           |
>
> |                     |           "vlan": "br-vlan"            |
>
> |                     |      },                                |
>
> |                     |      "extensions": [],                 |
>
> |                     |      "l2_population": true,            |
>
> |                     |      "tunnel_types": [                 |
>
> |                     |           "vxlan"                      |
>
> |                     |      ],                                |
>
> |                     |      "bridge_mappings": {}             |
>
> |                     | }                                      |
>
> | created_at          | 2017-04-19 23:12:47                    |
>
> | description         |                                        |
>
> | heartbeat_timestamp | 2017-04-28 15:07:59                    |
>
> | host                | 841445-compute007                      |
>
> | id                  | cb45e3f8-4a28-475a-994d-83bc27806c38   |
>
> | started_at          | 2017-04-20 17:38:03                    |
>
> | topic               | N/A                                    |
>
> +---------------------+----------------------------------------+
>
>
>
> The actual Layer 4 port used may vary between drivers (linuxbridge vs
> OVS), but that would either be hard-coded or defined within a configuration
> file.
>
>
>
> James
>
>
>
> *From: *Vikash Kumar <vikash.kumar at oneconvergence.com>
> *Date: *Friday, April 28, 2017 at 6:50 AM
> *To: *openstack-dev <openstack-dev at lists.openstack.org>, Openstack Milis <
> openstack at lists.openstack.org>
> *Subject: *[Openstack] [openstack-dev][openstack] API to get tunnel port
> connect to other host
>
>
>
> Is there any neutron API, which returns the tunnel port details connected
> to other host ?
>
> For eg. I have Host-A and Host-B. Is there a way to know what is the
> tunnel-port on Host-A which connects Host-B ?
>
> Can't use OVS commands directly.
>
>
> --
>
> Regards,
>
> Vikash
>



-- 
Regards,
Vikash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170429/9bf6b437/attachment.html>


More information about the OpenStack-dev mailing list