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

flow in operational data store does not contain all details from cofig (e.g. <instructions>)

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Do
    • None
    • None
    • General
    • None
    • Operating System: Linux
      Platform: PC

    • 1149

    Description

      used odl:
      org.opendaylight.controller.version = 0.1
      org.opendaylight.controller.build.scm.version = 03eb0149e2d6e045e40d7cdf338ee060bc39f070
      org.opendaylight.controller.build.user = jenkins-controller
      org.opendaylight.controller.build.workspace = **********
      org.opendaylight.controller.build.timestamp = 1401981249321
      org.opendaylight.controller.build.machine = **********

      mininet 2.1.0 with ovs 2.0.0

      1) PUT flow (xml attached)
      /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}, data=${data}, headers=${headers}

      2) GET config
      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <flow xmlns="urn:opendaylight:flow:inventory">
      <strict>false</strict>
      <id>125</id>
      <idle-timeout>34</idle-timeout>
      <cookie_mask>255</cookie_mask>
      <priority>2</priority>
      <hard-timeout>60</hard-timeout>
      <table_id>2</table_id>
      <instructions>
      <instruction>
      <order>0</order>
      <apply-actions>
      <action>
      <drop-action/>
      <order>0</order>
      </action>
      </apply-actions>
      </instruction>
      </instructions>
      <flow-name>FooXf2</flow-name>
      <match>
      <ethernet-match>
      <ethernet-type>
      <type>2048</type>
      </ethernet-type>
      </ethernet-match>
      <ipv4-source>10.0.0.1</ipv4-source>
      </match>
      <cookie>2</cookie>
      <installHw>false</installHw>
      <barrier>false</barrier>
      <flags>FlowModFlags [_cHECKOVERLAP=false, _rESETCOUNTS=false, _nOPKTCOUNTS=false, _nOBYTCOUNTS=false, _sENDFLOWREM=false]</flags>
      </flow>

      3) Get operational
      <flow>
      <id>125</id>
      <flow-statistics xmlns="urn:opendaylight:flow:statistics">
      <idle-timeout>34</idle-timeout>
      <flags/>
      <hard-timeout>60</hard-timeout>
      <cookie>2</cookie>
      <byte-count>0</byte-count>
      <match>
      <ipv4-source>10.0.0.1/32</ipv4-source>
      <ethernet-match>
      <ethernet-type>
      <type>2048</type>
      </ethernet-type>
      </ethernet-match>
      </match>
      <duration>
      <nanosecond>333000000</nanosecond>
      <second>19</second>
      </duration>
      <priority>2</priority>
      <packet-count>0</packet-count>
      <table_id>2</table_id>
      </flow-statistics>
      </flow>

      this bug can be related to https://bugs.opendaylight.org/show_bug.cgi?id=521

      Attachments

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

        Activity

          People

            vdemcak@cisco.com Vaclav Demcak
            pgubka@cisco.com Peter Gubka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: