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

Pre-configuration of flows causes exception

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • General
    • None
    • Operating System: Mac OS
      Platform: Macintosh

    • 282
    • Normal

    Description

      When trying to add a flow to a node which is not connected (i.e. trying to pre-configure a node), the following exception is thrown:

      <html>
      <head>
      <title>Apache Tomcat/7.0.32 - Error report</title>
      <style>
      <!--H1

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}

      H2

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}

      H3

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}

      BODY

      {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}

      B

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}

      P

      {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}

      A

      {color : black;}

      A.name

      {color : black;}

      HR

      {color : #525D76;}

      -->
      </style>
      </head>
      <body>
      <h1>HTTP Status 500 - Internal Server Error</h1>
      <HR size="1" noshade="noshade">
      <p>
      <b>type</b> Status report
      </p>
      <p>
      <b>message</b>
      <u>Internal Server Error</u>
      </p>
      <p>
      <b>description</b>
      <u>The server encountered an internal error that prevented it from fulfilling this request.</u>
      </p>
      <HR size="1" noshade="noshade">
      <h3>Apache Tomcat/7.0.32</h3>
      </body>
      </html>

      Use, for example:

      PUT http://192.168.4.1:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/135

      Accept: application/xml
      Content-type: application/xml

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <flow xmlns="urn:opendaylight:flow:inventory">
      <strict>false</strict>
      <flow-name>FooXf20</flow-name>
      <id>135</id>
      <cookie_mask>255</cookie_mask>
      <cookie>20</cookie>
      <table_id>2</table_id>
      <priority>2</priority>
      <hard-timeout>1200</hard-timeout>
      <idle-timeout>3400</idle-timeout>
      <installHw>false</installHw>
      <instructions>
      <instruction>
      <order>0</order>
      <apply-actions>
      <action>
      <order>0</order>
      <dec-nw-ttl/>
      </action>
      </apply-actions>
      </instruction>
      </instructions>
      <match>
      <metadata>
      <metadata>12345</metadata>
      </metadata>
      </match>
      </flow>

      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
              jmedved@cisco.com Jan Medved
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: