Search code examples
openflowopendaylight

Opendaylight: What is the ActionKey ( how used ?)


Consider the following opendaylight code segment:

   ActionBuilder ab = new ActionBuilder().setAction(vidcb.setSetVlanIdAction(tab.build()).build());

    ab.setOrder(0);
    ab.setKey(new ActionKey(0));

What is the ActionKey ?

I understand setOrder is the order of the instruction in an instruction bucket (?) Thanks.


Solution

    • setOrder is the order of the Action inside an Instruction, as an Instruction may contain more than one Actions.
    • ActionKey is the identifier of the Action. It can be used to access the specific action. For example, someone might need to keep a map between switches and Actions per switch of anything similar.