[VTN-58] Path map may disable flow timeout incorrectly. Created: 06/Feb/15  Updated: 19/Oct/17  Resolved: 09/Feb/15

Status: Resolved
Project: vtn
Component/s: VTN Manager
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Shigeru Yasuda 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: 2688

 Description   

If a flow is mapped by path map, and flow timeout is not specified in the path map,
flow timeout setting should be inherited from the virtual tenant configuration.
But zero is set in flow entries incorrectly.

How to reproduce:

1. Start VTN Manager and mininet.

2. Create a VTN and vBridge, and map all untagged networks to that vBridge using
VLAN mapping.

POST /controller/nb/v2/vtn/default/vtns/vtn_1
Request body:

{"idleTimeout": 300}

POST /controller/nb/v2/vtn/default/vtns/vtn_1/vbridges/bridge_1
Request body: {}

POST /controller/nb/v2/vtn/default/vtns/vtn_1/vbridges/bridge_1/vlanmaps
Request body: {}

3. Configure path map without specifying idle/hard timeout, and map all flows
to the path map.

PUT /controller/nb/v2/vtn/default/flowconditions/all
Request body: {}

PUT /controller/nb/v2/vtn/default/pathpolicies/1
Request body:

{"default": 10}

PUT /controller/nb/v2/vtn/default/vtns/vtn_1/pathmaps/1
Request body:

{"condition": "all", "policy": 1}

4. Send a packet.

mininet> h1 ping h2

Then VTN Manager will install flow entries like this:

cookie=0x0, duration=6.029s, table=0, n_packets=5, n_bytes=434,
priority=10,in_port=1,vlan_tci=0x0000/0x1fff,
dl_src=f2:89:2d:8c:8e:c9,
dl_dst=a6:76:f3:12:9b:ca actions=output:2

Although idle timeout value should be 300 as configured in the VTN configuration,
zero will be set.



 Comments   
Comment by Shigeru Yasuda [ 06/Feb/15 ]

https://git.opendaylight.org/gerrit/14984 (master)

Comment by Shigeru Yasuda [ 06/Feb/15 ]

https://git.opendaylight.org/gerrit/14996 (stable/helium)

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