Uploaded image for project: 'vtn'
  1. vtn
  2. VTN-64

For the flowlistentries and flowfilterentries created Attribute values are overwritten during update with the updated attribute values.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • unspecified
    • None
    • ODC Driver
    • None
    • Operating System: All
      Platform: All

    • 3109

    Description

      Issue Scenario :

      During the update of the vBr flowfilterentries and flowlistentries the array is overwritten with the new values,
      The array just gives the updated attribute and its value

      Reproduce the Bug :

      First configure the vBr flowfilters as per the commands given below:

      Controller :

      curl -v --user admin:adminpass -H 'content-type: application/json' -H 'ipaddr:127.0.0.1' -X POST -d '{"controller": {"controller_id": "odc", "ipaddr":"10.106.138.191", "type": "odc", "version": "1.0", "auditstatus":"enable"}}' http://127.0.0.1:8083/vtn-webapi/controllers.json

      Vtn :

      curl -v --user admin:adminpass -H 'content-type: application/json' -H 'ipaddr:127.0.0.1' -X POST -d '{"vtn" : {"vtn_name":"vtn_one","description":"test VTN" }}' http://127.0.0.1:8083/vtn-webapi/vtns.json

      VBRIDGE:

      curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -H 'ipaddr:127.0.0.1' -d '{"vbridge" : {"vbr_name":"vbr_one","controller_id":"odc","domain_id":"(DEFAULT)" }}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn_one/vbridges.json

      Flow Lists and FLowlistentries :

      curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"flowlist": {"fl_name": "flowlist1", "ip_version":"IP"}}' http://127.0.0.1:8083/vtn-webapi/flowlists.json

      curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"flowlistentry": {"seqnum": "11","macethertype": "0x800","ipdstaddr": "10.0.0.3","ipdstaddrprefix": "32","ipsrcaddr": "10.0.0.1","ipsrcaddrprefix": "32","ipproto": "1","ipdscp": "17","icmptypenum": "20","icmpcodenum":"20"}}' http://127.0.0.1:8083/vtn-webapi/flowlists/flowlist1/flowlistentries.json

      vBr flowfilters and flowfitlerentries:

      curl -v --user admin:adminpass -X POST -H 'content-type: application/json' -d '{"flowfilter" : {"ff_type": "in"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn_one/vbridges/vbr_one/flowfilters.json

      curl -v --user admin:adminpass -X POST -H 'content-type: application/json' -H 'ipaddr:127.0.0.1' -d '{"flowfilterentry": {"seqnum": "1", "fl_name": "flowlist1", "action_type":"pass", "priority":"3", "dscp":"55" }}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn_one/vbridges/vbr_one/flowfilters/in/flowfilterentries.json

      Then Update the Flowlistentries and flowfilterenties using the below commands:

      curl -v --user admin:adminpass -H 'content-type: application/json' -X PUT -d '{"flowlistentry": {"seqnum": "11","macethertype": "0x800","ipdstaddr": "10.0.0.3","ipdstaddrprefix": "32","ipsrcaddr": "10.0.0.1","ipsrcaddrprefix": "32","ipproto": "1","ipdscp": "16","icmptypenum": "20","icmpcodenum":"20"}}' http://127.0.0.1:8083/vtn-webapi/flowlists/flowlist1/flowlistentries/11.json

      curl -v --user admin:adminpass -X PUT -H 'content-type: application/json' -H 'ipaddr:127.0.0.1' -d '{"flowfilterentry": {"seqnum": "1", "fl_name": "flowlist1", "action_type":"pass", "priority":"3", "dscp":"50" }}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn_one/vbridges/vbr_one/flowfilters/in/flowfilterentries/1.json

      When the GET command is used in the Vtn manager to get the Flowconditions and flowfilterentries:

      curl -v --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X GET http://localhost:8282/controller/nb/v2/vtn/default/flowconditions

      Result:

      {"flowcondition":[{"name":"flowlist1","match":[{"ethernet":

      {"type":"2048"}

      ,"inetMatch":{"inet4":{"dscp":"16"}},"index":"11"}]}]}

      curl -v --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X GET http://localhost:8282/controller/nb/v2/vtn/default/vtns/vtn_one/vbridges/vbr_one/flowfilters/in/1

      Result:

      {"index":"1","condition":"flowlist1","filterType":{"pass":{}},"actions":[{"dscp":{"dscp":"50"}}]}

      Occurrence of the issue :

      For all the keytypes of flowlistentries or the flowfilterentries during update operation, the updated attribute alone is being overwritten on the whole array.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            yogalakshmi.pa@hcl.com YOGA LAKSHMI SWETHA PAYYAVULA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: