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

UDP L4 match details of source and destination creation failure in Flowlistentry

    XMLWordPrintable

Details

    • Bug
    • Status: Verified
    • Resolution: Unresolved
    • unspecified
    • None
    • ODC Driver
    • None
    • Operating System: All
      Platform: All

    • 9208

    Description

      In VTN Coordinator UDP L4 match details of source and destination creation fails in Flowlistentry.
      It accepts ipproto value as 17 but shows tcp source and destination values in logs.

      Steps to reproduce the bug:

      1. curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"controller":{"controller_id": "odc1", "ipaddr":"127.0.0.1", "type": "odc", "version": "1.0", "auditstatus":"enable"}}' http://127.0.0.1:8083/vtn-webapi/controllers
      1. curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"vtn" : {"vtn_name":"vtn1","description":"test VTN" }}' http://127.0.0.1:8083/vtn-webapi/vtns.json
      1. curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"vbridge" : {"vbr_name":"vBridge1","controller_id":"controllerone","domain_id":"(DEFAULT)" }}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges.json
      1. curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"interface": {"if_name": "if1","description": "if_desc1"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces.json
      1. curl -v --user admin:adminpass -H 'content-type: application/json' -X PUT -d '{"portmap":{"logical_port_id": "PP-OF:openflow:72931086629252-veth1_ovs"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces/if1/portmap
      1. 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
      1. curl -v --user admin:adminpass -H 'content-type: application/json' -X POST -d '{"flowlistentry": {"seqnum":"1","ipproto":"17","l4dstport":"400","l4dstendport":"600"}}' http://127.0.0.1:8083/vtn-webapi/flowlists/flowlist1/flowlistentries.json
      1. 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/vtn1/vbridges/vBridge1/interfaces/if1/flowfilters.json
      1. curl -v --user admin:adminpass -X POST -H 'content-type: application/json' -d '{"flowfilterentry": {"seqnum": "1", "fl_name": "flowlist1", "action_type":"pass","priority":"1"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn1/vbridges/vBridge1/interfaces/if1/flowfilters/in/flowfilterentries.json

      In Coordinator logs:

      2017-09-25 22:30:18.332050: [14099]: DEBUG: vtndrvintf: execute_cmd: Translate Create Command string
      2017-09-25 22:30:18.332079: [14099]: INFO: odcdriver: Filling Inet Match Details
      2017-09-25 22:30:18.332088: [14099]: INFO: odcdriver: Filling L4 Match Details
      2017-09-25 22:30:18.332095: [14099]: INFO: odcdriver: Filling L4 tcp Match Details
      2017-09-25 22:30:18.332147: [14099]: DEBUG: restjsonutil: User name and password is taken from conf file
      2017-09-25 22:30:18.332209: [14099]: DEBUG: restjsonutil: http://10.106.138.150:8181/restconf/operations/vtn-flow-condition:set-flow-condition-match Url formed
      2017-09-25 22:30:18.332220: [14099]: DEBUG: restjsonutil: HTTP_METHOD_POST
      2017-09-25 22:30:18.332234: [14099]: DEBUG: restjsonutil: Request Body : { "input": { "name": "flowlist1", "flow-match-list": [ { "index": 1, "tcp-destination-range":

      { "port-from": 400, "port-to": 600 }

      } ] } }
      2017-09-25 22:30:18.332241: [14099]: INFO: restjsonutil: requestbody : { "input": { "name": "flowlist1", "flow-match-list": [ { "index": 1, "tcp-destination-range":

      { "port-from": 400, "port-to": 600 }

      } ] } }
      2017-09-25 22:30:18.362467: [14099]: DEBUG: restjsonutil: Allocates Memory ............
      2017-09-25 22:30:18.362495: [14099]: DEBUG: restjsonutil: Reallocate Memory...............
      2017-09-25 22:30:18.362672: [14099]: DEBUG: vtndrvintf: deleted config_cmd_ptr
      2017-09-25 22:30:18.362689: [14099]: DEBUG: vtndrvintf: 30,keytype
      2017-09-25 22:30:18.362705: [14099]: DEBUG: odcdriver: UNC_VBRIF_FLOW_FILTER_ENTRY key type received
      2017-09-25 22:30:18.362716: [14099]: DEBUG: vtndrvintf: keytype:30, config_operation:1
      2017-09-25 22:30:18.362723: [14099]: DEBUG: vtndrvintf: execute_cmd: Translate Create Command string
      2017-09-25 22:30:18.362748: [14099]: DEBUG: restjsonutil: User name and password is taken from conf file
      2017-09-25 22:30:18.362806: [14099]: DEBUG: restjsonutil: http://10.106.138.150:8181/restconf/operational/vtn:vtns/vtn/vtn1 Url formed
      2017-09-25 22:30:18.395919: [14099]: DEBUG: restjsonutil: Allocates Memory ............
      2017-09-25 22:30:18.395949: [14099]: DEBUG: restjsonutil: Reallocate Memory...............

      In logs it shows as
      { "input": { "name": "flowlist1", "flow-match-list": [ { "index": 1, "tcp-destination-range":

      { "port-from": 400, "port-to": 600 }

      } ] } }

      Attachments

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

        Activity

          People

            ananth.y Y Ananth
            ananth.y Y Ananth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: