Uploaded image for project: 'OpenFlowPlugin'
  1. OpenFlowPlugin
  2. OPNFLWPLUG-106

2 Match and 2 Instructions via RESTCONF

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • General
    • None
    • Operating System: Linux
      Platform: PC

    • 660
    • Normal

    Description

      Install a flow via RESTCONF with the following command

      curl -v -X PUT -H "Content-Type: application/xml" -H "username: admin" -H "password: admin" -d @f1.xml http://127.0.0.1:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/124

      When viewing the flow via RESTCONF

      I see duplicated Match field and Instructions in the XML/JSON file.

      {
      "flow-node-inventory:flow": [
      {
      "flow-node-inventory:strict": false,
      "flow-node-inventory:instructions": {
      "flow-node-inventory:instruction": [
      {
      "flow-node-inventory:order": 0,
      "flow-node-inventory:apply-actions": {
      "flow-node-inventory:action": [
      {
      "flow-node-inventory:order": 0,
      "flow-node-inventory:dec-nw-ttl": {}
      }
      ]
      }
      }
      ]
      },
      "flow-node-inventory:table_id": 2,
      "flow-node-inventory:id": "124",
      "flow-node-inventory:cookie_mask": 255,
      "flow-node-inventory:installHw": false,
      "flow-node-inventory:match": {
      "flow-node-inventory:ethernet-match": {
      "flow-node-inventory:ethernet-type":

      { "flow-node-inventory:type": 2048 }

      },
      "flow-node-inventory:ipv4-destination": "10.0.1.0/24"
      },
      "flow-node-inventory:hard-timeout": 12,
      "flow-node-inventory:flags": "FlowModFlags [_cHECKOVERLAP=false, _rESETCOUNTS=false, _nOPKTCOUNTS=false, _nOBYTCOUNTS=false, _sENDFLOWREM=false]",
      "flow-node-inventory:cookie": 1,
      "flow-node-inventory:idle-timeout": 34,
      "flow-node-inventory:flow-name": "FooXf1",
      "flow-node-inventory:priority": 2,
      "flow-node-inventory:barrier": false,
      "flow-node-inventory:instructions": {
      "flow-node-inventory:instruction": [
      {
      "flow-node-inventory:order": 0,
      "flow-node-inventory:apply-actions": {
      "flow-node-inventory:action": [
      {
      "flow-node-inventory:order": 0,
      "flow-node-inventory:dec-nw-ttl": {}
      }
      ]
      }
      }
      ]
      },
      "flow-node-inventory:match": {
      "flow-node-inventory:ethernet-match": {
      "flow-node-inventory:ethernet-type":

      { "flow-node-inventory:type": 2048 }

      },
      "flow-node-inventory:ipv4-destination": "10.0.1.0/24"
      }
      }
      ]
      }

      Attachments

        Issue Links

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

          Activity

            People

              vdemcak@cisco.com Vaclav Demcak
              christopher.o.shea@ericsson.com Christopher O'Shea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: