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

Modifying config flow does not work if first flow creation failed

    XMLWordPrintable

Details

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

    • 6085

    Description

      User installs a flow (e.g id=X) using the config data store and switch didn't not accept that flow because of the flow_mod error. Now user modifies the same flow in config data store to correct it, but flow does not get install on the switch.

      E.g

      Install following flow on the switch. This flow should fail, because of the out of range port number 65535.

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <flow
      xmlns="urn:opendaylight:flow:inventory">
      <strict>false</strict>
      <idle-timeout>0</idle-timeout>
      <hard-timeout>0</hard-timeout>
      <instructions>
      <instruction>
      <order>0</order>
      <apply-actions>
      <action>
      <output-action>
      <output-node-connector>openflow:1:65535</output-node-connector>
      </output-action>
      <order>3</order>
      </action>
      </apply-actions>
      </instruction>
      </instructions>
      <table_id>0</table_id>
      <id>1</id>
      <match>
      <ethernet-match>
      <ethernet-type>
      <type>2048</type>
      </ethernet-type>
      <ethernet-destination>
      <address>FF:FF:29:01:19:61</address>
      </ethernet-destination>
      </ethernet-match>
      </match>
      <flow-name>wrong-flow</flow-name>
      <priority>2</priority>
      </flow>

      Now user modify the same flow in config data store and correct the port number

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <flow
      xmlns="urn:opendaylight:flow:inventory">
      <strict>false</strict>
      <idle-timeout>0</idle-timeout>
      <hard-timeout>0</hard-timeout>
      <instructions>
      <instruction>
      <order>0</order>
      <apply-actions>
      <action>
      <output-action>
      <output-node-connector>openflow:1:1</output-node-connector>
      </output-action>
      <order>3</order>
      </action>
      </apply-actions>
      </instruction>
      </instructions>
      <table_id>0</table_id>
      <id>1</id>
      <match>
      <ethernet-match>
      <ethernet-type>
      <type>2048</type>
      </ethernet-type>
      <ethernet-destination>
      <address>FF:FF:29:01:19:61</address>
      </ethernet-destination>
      </ethernet-match>
      </match>
      <flow-name>wrong-flow</flow-name>
      <priority>2</priority>
      </flow>

      This flow is correct and ideally it should be installed on the switch, but that's not happening.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            Avishnoi Anil Vishnoi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: