title: REST API - Error 400 - opendaylight
body: <p>I am trying to add a flow using REST API in ODL but I am getting the following error: </p>
  
  <p>{"errors":{"error":[{"error-type":"protocol","error-tag":"malformed-message","error-message":"Error parsing input: Child \"flow\" was not found in parent schema node </p>
  
  <p>The flow rule is : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;flow&gt;
  &lt;priority&gt;2&lt;/priority&gt;
  &lt;flow-name&gt;Foo&lt;/flow-name&gt;
  &lt;match&gt;
      &lt;ethernet-match&gt;
          &lt;ethernet-type&gt;
              &lt;type&gt;2048&lt;/type&gt;
          &lt;/ethernet-type&gt;
      &lt;/ethernet-match&gt;
      &lt;ipv4-destination&gt;10.0.10.2/24&lt;/ipv4-destination&gt;
  &lt;/match&gt;
  &lt;id&gt;1&lt;/id&gt;
  &lt;table_id&gt;0&lt;/table_id&gt;
  &lt;instructions&gt;
      &lt;instruction&gt;
          &lt;order&gt;0&lt;/order&gt;
          &lt;apply-actions&gt;
              &lt;action&gt;
                 &lt;order&gt;0&lt;/order&gt;
                 &lt;dec-nw-ttl/&gt;
              &lt;/action&gt;
          &lt;/apply-actions&gt;
      &lt;/instruction&gt;
  &lt;/instructions&gt;
  &lt;/flow&gt;
  </code></pre>
  
  <p>Any ideas?</p>