Uploaded image for project: 'genius'
  1. genius
  2. GENIUS-7

Actions may be overridden when used in combination with getEgressActionsForInterface

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Do
    • (unspecified)
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 6441

    Description

      The following code is expected to create the following OF actions
      actions=set_field:00:1c:73:4e:d3:31->eth_dst,load:0x100->NXM_NX_REG6[],resubmit(,220)

      List<ActionInfo> actionList = new ArrayList<>();
      actionList.add(new ActionInfo(ActionType.set_field_eth_dest, new String[]

      { macAddress }

      ));
      List<ActionInfo> egressActionList = NatUtil.getEgressActionsForInterface(interfaceManager, extInterface, null);
      actionList.addAll(egressActionList);

      Instead, only the egress actions are created and set_field will be discarded due to internal ordering created by OdlInterfaceRpcService.getEgressActionsForInterface()

      A workaround for this can be forcing the order using ActionInfo c'tor with order parameter. But why is an ordered collection like List needs an additional ordering?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jaicaa Jaime CaamaƱo Ruiz
            tali@hpe.com Tali Ben-Meir
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: