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

of-flow: sal-flow:update-flow return 400

    XMLWordPrintable

Details

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

    • 1765

    Description

      odl:
      org.opendaylight.controller.version = 0.1
      org.opendaylight.controller.build.scm.version = 15e9db7d90e46f014aeba760263623094bc48f14
      org.opendaylight.controller.build.user = jenkins-controller
      org.opendaylight.controller.build.workspace = **********
      org.opendaylight.controller.build.timestamp = 1410248111419
      org.opendaylight.controller.build.machine = **********

      when trying to use /restconf/operations/sal-flow:update-flow i get 400, the same xml works for add-flow, so the problem should be somewhere else.

      POST /restconf/operations/sal-flow:update-flow HTTP/1.1
      Host: 10.25.2.9:8080
      Content-Length: 899
      Accept-Encoding: gzip, deflate
      Accept: /
      User-Agent: python-requests/2.3.0 CPython/2.7.3 Linux/3.10.12-100.fc18.x86_64
      Content-Type: application/xml
      Authorization: Basic YWRtaW46YWRtaW4=

      <input xmlns="urn:opendaylight:flow:service">
      <strict>false</strict>
      <instructions>
      <instruction>
      <order>0</order>
      <apply-actions>
      <action>
      <order>0</order>
      <drop-action />
      </action>
      </apply-actions>
      </instruction>
      </instructions>
      <table_id>2</table_id>
      <cookie_mask>255</cookie_mask>
      <installHw>false</installHw>
      <match>
      <ethernet-match>
      <ethernet-type>
      <type>2048</type>
      </ethernet-type>
      </ethernet-match>
      <ipv4-destination>10.0.1.0/24</ipv4-destination>
      </match>
      <cookie>1</cookie>
      <flow-name>FooXf1</flow-name>
      <priority>1</priority>
      <barrier>false</barrier>
      <node xmlns:inv="urn:opendaylight:inventory">/inv:nodes/inv:node[inv:id="openflow:1"]</node></input>

      HTTP/1.1 400 Bad Request
      Server: Apache-Coyote/1.1
      Content-Type: /
      Transfer-Encoding: chunked
      Date: Tue, 09 Sep 2014 09:29:51 GMT
      Connection: close

      146
      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf">
      <error>
      <error-type>application</error-type>
      <error-tag>unknown-element</error-tag>
      <error-message>Schema node "strict" was not found in module.</error-message>
      </error>
      </errors>

      Attachments

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

        Activity

          People

            michal.rehak Michal Rehak
            pgubka@cisco.com Peter Gubka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: