- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- HP SDN
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
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
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
11-11-2015 07:42 AM
11-11-2015 07:42 AM
HP SDN
Hello.
I want to test meters on my HP E3800 24G-2SFP j9573A switch, but i get this error "Pipeline Definition is not available" when i try to add the flow. How can i solve this problem?
Here is the code:
/****************************************************************************************************************************/
MeterId meterId = MeterId.valueOf(100);
/************************CREATE METER*************************/
OfmMutableMeterMod meterMod = (OfmMutableMeterMod)MessageFactory.create(Utilities.OF_VERSION, MessageType.METER_MOD);
MeterBand meterBand = MeterBandFactory.createBand(Utilities.OF_VERSION, MeterBandType.DROP, 10, 10);
meterMod.addBand(meterBand);
meterMod.command(MeterModCommand.ADD)
.meterId(meterId);
LOG.info("SwitchListener: meterId {}",meterMod.getMeterId().toString());
/*************************ADD METER TO SWITCH*************************/
try {
mControllerService.sendMeterMod((OfmMeterMod) meterMod.toImmutable(), dpId);
LOG.info("SwitchListener: Add Meter");
} catch (OpenflowException e) {
LOG.error("SwitchListener: Error to add meter");
LOG.error("SwitchListener: {}", e.getCause());
return;
}
/***********************CREATE METER INSTRUCTION**************************/
Instruction meterInst = InstructionFactory.createInstruction(Utilities.OF_VERSION, InstructionType.METER, meterId);
/*******************************CREATE FLOW********************************/
OfmMutableFlowMod flowMod = (OfmMutableFlowMod)MessageFactory.create(Utilities.OF_VERSION, MessageType.FLOW_MOD );
MutableMatch match = MatchFactory.createMatch( Utilities.OF_VERSION )
.addField( FieldFactory.createBasicField( Utilities.OF_VERSION, OxmBasicFieldType.ETH_TYPE, EthernetType.IPv4 ));
flowMod.match((Match) match.toImmutable());
flowMod.addInstruction(meterInst);
flowMod.command( FlowModCommand.ADD )
.hardTimeout(5)
.idleTimeout(5)
.priority( 32200 )
.bufferId( BufferId.NO_BUFFER );
/**************************ADD FLOW TO SWITCH****************************/
try {
mControllerService.sendFlowMod((OfmFlowMod) flowMod.toImmutable(), dpId);
LOG.info("SwitchListener: Add Flow");
} catch (OpenflowException e) {
LOG.error("SwitchListener: Error to add flow");
LOG.error("SwitchListener: {}", e);
LOG.error("SwitchListener: {}", e.getCause());
}
/****************************************************************************************************************************/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2015 07:20 AM
11-13-2015 07:20 AM
Re: HP SDN
Hi,
Thank you for contacting the HPE SDN Team. In order for our team to better provide you with an answer we would need more information about your request. We would would like to know if you have tried inserting a barrier_request into the code before sending the flow mod?
We would also like to know:
1. version of switch firmware
2. version of SDN Controller
3. packet capture of the OpenFlow messages between the controller and the switch at the time the code is executed.
Best Regards,
Carlos
HPE CoE SDN Team