Software Defined Networking
1756751 Members
3467 Online
108852 Solutions
New Discussion

HP SDN

 
AiltonLuz
Occasional Contributor

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());
}

/****************************************************************************************************************************/

1 REPLY 1
Carlos
Frequent Advisor

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