- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- Re: How to get DataPathId of switch for a node tha...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2014 07:35 PM
10-15-2014 07:35 PM
Hello,
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.
I know that I can get all the nodes with the IP Address by using the NodeService as follows:
Set<Node> nodes = nodeService.getNodes(IpAddress.ip(ipAddress));
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!
-David
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2014 09:45 PM
10-16-2014 09:45 PM
SolutionHello David,
Function call getNodes as below
Set<Node> getNodes(IpAddress ip) which returns all nodes in the domain with a given IP address.
Node has below function which returns the most recent node location(NodeLocation ).
NodeLocation location()
Again NodeLocation can call a function elementId() which returns DeviceId and then function toString() can be called .
Finally static DataPathId dpid(String spec) will give the dpid i.e. DataPathID
Please let us know if this helps or you still face the issue.
Thanks,
HP SDN Team
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2014 10:27 AM
10-20-2014 10:27 AM
Re: How to get DataPathId of switch for a node that has a certain IP Address
Thank you,
Out of curiosity is this documented anywhere in the SDK PDF manual? I would like to read more about how to use the different interfaces and what they mean.
-David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2014 10:29 PM
10-27-2014 10:29 PM
Re: How to get DataPathId of switch for a node that has a certain IP Address
Hello David,
You can find the information in Java API documentation.
Doing a follow up to see if you need any further assistance with respected to the query.
Thanks,
HP SDN Team