<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi James,<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">   I was asking for the tunnel ports on br-tun on every compute.<br><br>sudo ovs-vsctl list-ifaces br-tun<br>patch-int<br><b>vxlan-c0a80265<br>vxlan-c0a802b1</b><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 28, 2017 at 8:41 PM, James Denton <span dir="ltr"><<a href="mailto:james.denton@rackspace.com" target="_blank">james.denton@rackspace.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div bgcolor="white" link="#0563C1" vlink="#954F72" lang="EN-US">
<div class="m_7103540998907567306WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Hi Vikash,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">The VXLAN tunnel endpoint address is listed in the output of a neutron agent-show <agent name/id>:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">$ neutron agent-show cb45e3f8-4a28-475a-994d-<wbr>83bc27806c38<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">+---------------------+-------<wbr>------------------------------<wbr>---+<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">| Field               | Value                         <wbr>         |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">+---------------------+-------<wbr>------------------------------<wbr>---+<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">| admin_state_up      | True                          <wbr>         |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">| agent_type          | Linux bridge agent                     |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">| alive               | True                          <wbr>         |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">| availability_zone   |                                    <wbr>    |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">| binary              | neutron-linuxbridge-agent     <wbr>         |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">| configurations      | {                             <wbr>         |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">|                     |      "tunneling_ip": "172.29.232.66",  |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">|                     |      "devices": 2,                     |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">|                     |      "interface_mappings": {           |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">|                     |           "vlan": "br-vlan"            |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">|                     |      },                            <wbr>    |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">|                     |      "extensions": [],                 |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">|                     |      "l2_population": true,            |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">|                     |      "tunnel_types": [                 |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">|                     |           "vxlan"                      |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">|                     |      ],                            <wbr>    |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">|                     |      "bridge_mappings": {}             |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">|                     | }                             <wbr>         |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">| created_at          | 2017-04-19 23:12:47                    |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">| description         |                             <wbr>           |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">| heartbeat_timestamp | 2017-04-28 15:07:59                    |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">| host                | 841445-compute007             <wbr>         |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">| id                  | cb45e3f8-4a28-475a-994d-<wbr>83bc27806c38   |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">| started_at          | 2017-04-20 17:38:03                    |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">| topic               | N/A                           <wbr>         |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Andale Mono"">+---------------------+-------<wbr>------------------------------<wbr>---+<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Calibri;color:black">James</span><span style="font-size:11.0pt;font-family:Calibri"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">Vikash Kumar <<a href="mailto:vikash.kumar@oneconvergence.com" target="_blank">vikash.kumar@oneconvergence.<wbr>com</a>><br>
<b>Date: </b>Friday, April 28, 2017 at 6:50 AM<br>
<b>To: </b>openstack-dev <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.<wbr>openstack.org</a>>, Openstack Milis <<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><wbr>><br>
<b>Subject: </b>[Openstack] [openstack-dev][openstack] API to get tunnel port connect to other host<u></u><u></u></span></p>
</div><div><div class="h5">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:Verdana">Is there any neutron API, which returns the tunnel port details connected to other host ?
<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:Verdana">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 ?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Verdana">Can't use OVS commands directly.
<br clear="all">
<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><br>
-- <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Trebuchet MS"">Regards,</span><u></u><u></u></p>
</div>
<p class="MsoNormal"><span style="font-family:"Trebuchet MS"">Vikash</span><u></u><u></u></p>
</div>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-family:trebuchet ms,sans-serif">Regards,<br></span></div><span style="font-family:trebuchet ms,sans-serif">Vikash</span><br></div></div>
</div>