Yes,  the flow is in config. The capture below of the restconf shows that.
We write to config,  then the flow is pushed to switch,  but it has the
funny id. This had been this way forever. It broke on the li switch.

Rpc's are not used. Just writes to mdsal config via a put.

Only some flows have this issue. The only thing I can see is sometimes the
same flow is written twice to config,  but always to the same switch and as
the same flow. Again,  this has always worked.
On Jun 30, 2016 2:12 AM, "Muthukumaran K" <[email protected]>
wrote:

In erstwhile model, these cryptic IDs used to be generated when flow-push
is done via direct OFp RPC than via Config DS.



Regards

Muthu



*From:* [email protected] [mailto:
[email protected]] *On Behalf Of *Shuva
Jyoti Kar
*Sent:* Thursday, June 30, 2016 7:47 AM
*To:* Sam Hague
*Cc:* [email protected]
*Subject:* Re: [openflowplugin-dev] flow id in operational is different
than config after switch to -li plugin



Hi Sam,

The intention of allocating funny ids dates back in the old plugin model.
However we used it there to signify flows that are present in switch but
not in config DS.



Are you seeing the funny ids for flows that are only in the switch? Or
present in both controller and switch?



Thanks

Shuva



On Thu, Jun 30, 2016 at 4:00 AM, Sam Hague <[email protected]> wrote:



Hi all,

after the switch to the -li plugin something strange is happening with the
flow ids on certain flows. Looking at the flow below first from config and
then operational you see a funny id in operational rather than the nice id
used in config.

Some flows are consistent between config and operational and others have
this issue. The only thing I can see is that these funny ones are sometimes
written to mdsal config twice.



Thanks, Sam

config:
{

          "id": "DropFilter_1",
          "hard-timeout": 0,
          "idle-timeout": 0,
          "match": {
            "in-port": "openflow:140794795157368:1"
          },
          "instructions": {
            "instruction": [
              {
                "order": 0,
                "apply-actions": {
                  "action": [
                    {
                      "order": 0,
                      "drop-action": {}
                    }
                  ]
                }
              }
            ]
          },
          "barrier": false,
          "strict": true,
          "priority": 8192,
          "table_id": 0,
          "flow-name": "DropFilter_1"
        }

operational:
{
          "id": "#UF$TABLE*0-3",
          "hard-timeout": 0,
          "idle-timeout": 0,
          "match": {
            "in-port": "openflow:140794795157368:1"
          },
          "cookie": 0,
          "flags": "",
          "priority": 8192,
          "opendaylight-flow-statistics:flow-statistics": {
            "packet-count": 0,
            "byte-count": 0,
            "duration": {
              "nanosecond": 558000000,
              "second": 344
            }
          },
          "table_id": 0
        },
_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev

Reply via email to