Hi Tomas,

        I tried with a match field (empty or not), it does not work. 

Here is my body of my REST request:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow xmlns="urn:opendaylight:flow:inventory">
    <barrier>false</barrier>
    <cookie>10</cookie>
    <cookie_mask>10</cookie_mask>
  <flags>SEND_FLOW_REM</flags>
    <flow-name>FooXf1</flow-name>
    <hard-timeout>0</hard-timeout>
    <id>1234</id>
    <idle-timeout>0</idle-timeout>
    <installHw>false</installHw>
    <match>
        <ipv4-destination>10.0.10.2/24</ipv4-destination>
    </match>
  <instructions>
        <instruction>
            <apply-actions>
                <action>
                  <order>0</order>
                  <nfx-action-set-payload-ip 
xmlns="urn:opendaylight:openflowplugin:extension:noviflow:action">
                  <payload_size>1</payload_size>
                  <payload_offset>0</payload_offset>
                  <hasmask>0</hasmask>
                  <data>9</data>
                  
                  </nfx-action-set-payload-ip>
                </action>

            </apply-actions>
            <order>0</order>
        </instruction>
    </instructions>
    <priority>2</priority>
    <strict>false</strict>
    <table_id>2</table_id>
</flow>

Here is the flow in the configuration store (via a GET request):
{
  "flow-node-inventory:table": [
    {
      "id": 2,
      "flow": [
        {
          "id": "1234",
          "hard-timeout": 0,
          "idle-timeout": 0,
          "match": {
            "ipv4-destination": "10.0.10.2/24"
          },
          "flags": "SEND_FLOW_REM",
          "instructions": {
            "instruction": [
              {
                "order": 0,
                "apply-actions": {
                  "action": [
                    {
                      "order": 0,
                      
"openflowplugin-extension-noviflow-action:nfx-action-set-payload-ip": {
                        "payload_offset": 0,
                        "data": [
                          9
                        ],
                        "payload_size": 1,
                        "hasmask": 0
                      }
                    }
                  ]
                }
              }
            ]
          },
          "priority": 2,
          "table_id": 2,
          "cookie_mask": 10,
          "cookie": 10,
          "installHw": false,
          "barrier": false,
          "strict": false,
          "flow-name": "FooXf1"
        }
      ]
    }
  ]
}

I have run Wireshark and I don’t see any flow mod request.

Do you have any idea where I should be looking in the code for the problem?

Thanks a lot,


> Le 11 avr. 2017 à 11:55, Tomáš Slušný <[email protected]> a écrit :
> 
> Hi yann,
> 
> this was caused probably because you have <match/> missing. After moving to 
> single layer serialization, I forgot to handle this case (what was working 
> with old serialization method), so can you try to push your flow with empty 
> match? And also, I created patch that should resolve this issue here: 
> https://git.opendaylight.org/gerrit/#/c/54789/1 
> <https://git.opendaylight.org/gerrit/#/c/54789/1>​
> 
> Regards,
> Tomas 
> Od: yann bourdeau <[email protected] 
> <mailto:[email protected]>>
> Odoslané: 11. apríla 2017 17:24
> Komu: Anil Vishnoi
> Kópia: [email protected] 
> <mailto:[email protected]>; Arun Paneri (NoviFlow); 
> [email protected] 
> <mailto:[email protected]>
> Predmet: Re: [openflowplugin-dev] Problem moving flow (FLOWMOD with 
> experimenter action) from config datastore to operational stores (continued)
>  
> Hi Anil,
> 
> Here is the trace. As you can see, there is no flow created.
> 
> 

Yann Bourdeau, M.Ing.
Senior Software Developer
438-499-4607
[email protected]



_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev

Reply via email to