Software Defined Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

2 output ports actions under instruction not working HP5900

 
Highlighted
Occasional Contributor

2 output ports actions under instruction not working HP5900

Hello guys

I tried to insert under instruction , 2 actions which are 2 output ports on the HP5900 switch .

for some reason this particular flow not working .

i dont see any errors in the log file . in the switch itself also no indication of succes or failure.

Also i wiresharked the flow installation process and controller sends the flow correctly .

 

Here is the code :

 

MutableMatch m221 = MatchFactory.createMatch( ProtocolVersion.latest() )
                .addField( FieldFactory.createBasicField( ProtocolVersion.latest(), OxmBasicFieldType.ETH_TYPE, EthernetType.ARP ))
                .addField( FieldFactory.createBasicField( ProtocolVersion.latest(), OxmBasicFieldType.IN_PORT, BigPortNumber.valueOf(11)));
                
        fm221.match( (Match)m221.toImmutable() );
    
        //Action arpAction = ActionFactory.createAction( ProtocolVersion.latest(), ActionType.OUTPUT, Port.NORMAL);
        Action arpAction221 = ActionFactory.createAction( ProtocolVersion.latest(), ActionType.OUTPUT,  BigPortNumber.valueOf(45));
        Action arpAction222 = ActionFactory.createAction( ProtocolVersion.latest(), ActionType.OUTPUT,  BigPortNumber.valueOf(46));   
        
        InstrMutableAction write555 = InstructionFactory.createMutableInstruction(ProtocolVersion.V_1_3, InstructionType.WRITE_ACTIONS);
        
        write555.addAction(arpAction221);
        write555.addAction(arpAction222);
        fm221.addInstruction((Instruction) write555.toImmutable());
        fm221.command( FlowModCommand.ADD )
                  .hardTimeout(0)
                  .idleTimeout(0)
                  .priority( 50555 )
                  .tableId(TableId.valueOf(0))
                  .bufferId( BufferId.NO_BUFFER )
                  .cookie(0x3333);
        
        try{
            mControllerService.sendFlowMod( (OfmFlowMod)fm221.toImmutable(), dpId );
            LOG.info( "Flow arp was installed" );
        }
        catch( Exception e ) {
            LOG.info( "MyBlacklist: SwitchListener: setInitialFlows() exception: {}", e );
        }

2 REPLIES 2
Highlighted
Trusted Contributor

Re: 2 output ports actions under instruction not working HP5900

Hello vmoki,

 

Apologies for the delay.

H3C doesn’t support multiple output ports in a flow (yet).

 

Thanks,

HP SDN Team

Highlighted
Occasional Contributor

Re: 2 output ports actions under instruction not working HP5900

Thanks for the reply .

Maybe that is possible to achieve via group ? i think group is exactly for those replication actions ? if yes please send an a java code example .

 

Thanks