- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- Afer create flow message successly, how to send it...
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
09-15-2014 07:48 AM
09-15-2014 07:48 AM
Afer create flow message successly, how to send it to specific DataPath?
Hi,ALL!
Where's the problem with below codes? The codes can't send flow message to specific DataPath! Why function "sendFlowMode" return null? How can i send flow to specific DataPath?
// Construct OfmMutableFlowMod
OfmMutableFlowMod mod = (OfmMutableFlowMod) MessageFactory .create(pv, MessageType.FLOW_MOD);
// Assemble the match fields
// Add the values to flow mod
//Convert to Immutable
OfmFlowMod flow = (OfmFlowMod)mod.toImmutable();
…
//Call the method, below codes don't work!
DataPathId dpid=DataPathId.valueof("00:03:9c:b6:54:cb:c6:80");
ControllerService cs =new ControllerServiceAdapter();
MessageFuture mf=cs.sendFlowMod(flow,dpid); //return mf is null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2014 11:47 PM
09-18-2014 11:47 PM
Re: Afer create flow message successly, how to send it to specific DataPath?
Hello harcy,
Since sendFlowMod() function is returning null so please check if the argument for this function i.e. flow as well as dpid have proper values.
As per Programming guide page 31 you can use
private ControllerService cs = ...;
You can have private static ControllerService mControllerService; in your class and initialize that member and call sendFlowMod function.
If you still face the issue please share the exact code for flow creation and for dpid initialization.
Thanks,
HP SDN Team