[VTN-66] Issue in update operation of redirect array of flowfitlerentry keytypes Created: 19/May/15  Updated: 19/Oct/17  Resolved: 26/Jun/15

Status: Resolved
Project: vtn
Component/s: ODC Driver
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: YOGA LAKSHMI SWETHA PAYYAVULA Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 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.



 Comments   
Comment by YOGA LAKSHMI SWETHA PAYYAVULA [ 24/Jun/15 ]

This Bug is fixed in the below given patch:

https://git.opendaylight.org/gerrit/20936

Comment by YOGA LAKSHMI SWETHA PAYYAVULA [ 26/Jun/15 ]

This Bug was filed in the Lithium release.

Please find the link for the patch in Master Branch :
https://git.opendaylight.org/gerrit/#/c/20887/3

Please find below the link for stable/Lithium branch :
https://git.opendaylight.org/gerrit/#/c/20936/

Generated at Wed Feb 07 20:47:55 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.