[VTN-73] New attributes that are created during the update operation is not getting created. Created: 15/Jun/15 Updated: 19/Oct/17 Resolved: 02/Jul/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 |
||
| External issue ID: | 3716 |
| Description |
|
Issue Scenario : When the new attributes are created during update operation of the flowfilterentries and flowlistentries,those values are not read in the Vtn Manager. 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"}}' 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"}}' 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":{"protocol":"1","dscp":"1","src":"10.0.0.4","dst":"10.0.0.3"}},"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":[{"vlanpcp":{"priority":"3"}}] Occurrence of the issue : For all the keytypes of flowlistentries or the flowfilterentries when the new attributes are created in the update operation. |
| Comments |
| Comment by Hideyuki Tai [ 02/Jul/15 ] |
|
https://git.opendaylight.org/gerrit/#/c/22760/ (stable/lithium) https://git.opendaylight.org/gerrit/#/c/22757/ (master) |