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

Issue in update operation of redirect array of flowfitlerentry keytypes

    XMLWordPrintable

Details

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

    • 3271

    Description

      Issue Scenario :

      The Update operation fails for the vnode and port attribute value in the redirect array of the vbr flowlifterentries

      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

      vBr Interfaces :

      curl -v --user admin:adminpass -H 'content-type: application/json' -H 'ipaddr:127.0.0.1' -X POST -d '{"interface": {"if_name": "if1","description": "if_desc1"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn_one/vbridges/vbr_one/interfaces.json

      curl -v --user admin:adminpass -H 'content-type: application/json' -H 'ipaddr:127.0.0.1' -X POST -d '{"interface": {"if_name": "if2","description": "if_desc1"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn_one/vbridges/vbr_one/interfaces.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":"redirect", "priority":"3", "dscp":"55", "redirectdst":

      {"vnode_name":"vbr_one", "if_name":"if1", "direction":"in", "macsrcaddr":"f0f1.f2f3.f4f5"}

      }}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn_one/vbridges/vbr_one/flowfilters/in/flowfilterentries.json

      Then Update Redirect array in flowfilterenties using the below commands:

      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":"redirect", "priority":"3", "dscp":"55", "redirectdst":

      {"vnode_name":"vbr_one", "if_name":"if2", "direction":"in", "macsrcaddr":"f0f1.f2f3.f4f5"}

      }}' 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 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/vtns/vtn_one/vbridges/vbr_one/flowfilters/in/1

      Result:

      {"index":"1","condition":"flowlist1","filterType":{"redirect":{"destination":

      {"bridge":"vbr_one","interface":"if1"}

      ,"output":false}},"actions":[{"dscp":{"dscp":"55"}},{"vlanpcp":{"priority":"3"}},
      {"dlsrc":{"address":"f0:f1:f2:f3:f4:f5"}}]}

      Occurrence of the issue :

      For all the keytypes of flowfilterentries when the redirect array attributes are updated.

      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: