<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get DataPathId of switch for a node that has a certain IP Address in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/how-to-get-datapathid-of-switch-for-a-node-that-has-a-certain-ip/m-p/6657430#M1653</link>
    <description>&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find the information in Java API documentation.&lt;/P&gt;&lt;P&gt;Doing a follow up to see if you need any further assistance with respected to the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;HP SDN Team&lt;/P&gt;</description>
    <pubDate>Tue, 28 Oct 2014 05:29:17 GMT</pubDate>
    <dc:creator>sdnindia</dc:creator>
    <dc:date>2014-10-28T05:29:17Z</dc:date>
    <item>
      <title>How to get DataPathId of switch for a node that has a certain IP Address</title>
      <link>https://community.hpe.com/t5/software-defined-networking/how-to-get-datapathid-of-switch-for-a-node-that-has-a-certain-ip/m-p/6648116#M1650</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to kindly ask how via the 2.3.5 SDN Controller API I would be able to get the DataPathId(s) of the switch(es) that are passing packets with a specific source IP Address.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that I can get all the nodes with the IP Address by using the NodeService as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set&amp;lt;Node&amp;gt; nodes = nodeService.getNodes(IpAddress.ip(ipAddress));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now with the node's NodeLocation I can even get the node's elementId/InterfaceId/DeviceId, but via this information how can i get the swtich(es) DatapathId(s) that are passing packets with this as a source IP Address? I need this information to target the specific switches with FlowMod messages to drop packets with the specified source IP Address. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-David&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2014 02:35:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/how-to-get-datapathid-of-switch-for-a-node-that-has-a-certain-ip/m-p/6648116#M1650</guid>
      <dc:creator>NewToSDNProgram</dc:creator>
      <dc:date>2014-10-16T02:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get DataPathId of switch for a node that has a certain IP Address</title>
      <link>https://community.hpe.com/t5/software-defined-networking/how-to-get-datapathid-of-switch-for-a-node-that-has-a-certain-ip/m-p/6649100#M1651</link>
      <description>&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function call getNodes as below&lt;/P&gt;&lt;P&gt;Set&amp;lt;Node&amp;gt; getNodes(IpAddress ip) which returns all nodes in the domain with a given IP address.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Node has below function which returns the most recent node location(NodeLocation ).&lt;/P&gt;&lt;P&gt;NodeLocation &amp;nbsp;&amp;nbsp; location()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again NodeLocation can call a function elementId() which returns DeviceId&amp;nbsp; &amp;nbsp;&amp;nbsp;and then function toString() can be called .&lt;/P&gt;&lt;P&gt;Finally &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;static DataPathId &amp;nbsp;&amp;nbsp; dpid(String spec) will give the dpid i.e. DataPathID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if this helps or you still face the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;HP SDN Team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2014 04:45:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/how-to-get-datapathid-of-switch-for-a-node-that-has-a-certain-ip/m-p/6649100#M1651</guid>
      <dc:creator>sdnindia</dc:creator>
      <dc:date>2014-10-17T04:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get DataPathId of switch for a node that has a certain IP Address</title>
      <link>https://community.hpe.com/t5/software-defined-networking/how-to-get-datapathid-of-switch-for-a-node-that-has-a-certain-ip/m-p/6651404#M1652</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Out of curiosity is this documented anywhere in the SDK PDF&amp;nbsp;manual? I would like to read more about how to use the different interfaces and what they mean.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-David&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2014 17:27:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/how-to-get-datapathid-of-switch-for-a-node-that-has-a-certain-ip/m-p/6651404#M1652</guid>
      <dc:creator>NewToSDNProgram</dc:creator>
      <dc:date>2014-10-20T17:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get DataPathId of switch for a node that has a certain IP Address</title>
      <link>https://community.hpe.com/t5/software-defined-networking/how-to-get-datapathid-of-switch-for-a-node-that-has-a-certain-ip/m-p/6657430#M1653</link>
      <description>&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find the information in Java API documentation.&lt;/P&gt;&lt;P&gt;Doing a follow up to see if you need any further assistance with respected to the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;HP SDN Team&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2014 05:29:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/how-to-get-datapathid-of-switch-for-a-node-that-has-a-certain-ip/m-p/6657430#M1653</guid>
      <dc:creator>sdnindia</dc:creator>
      <dc:date>2014-10-28T05:29:17Z</dc:date>
    </item>
  </channel>
</rss>

