Bug 3792 - Change default flow timeout values to 0 35/22835/1
authorAnil Vishnoi <vishnoianil@gmail.com>
Wed, 17 Jun 2015 22:16:41 +0000 (03:46 +0530)
committerAnil Vishnoi <vishnoianil@gmail.com>
Wed, 17 Jun 2015 22:51:02 +0000 (22:51 +0000)
commit3ac0ecb8e722de9862d01179bcfb01ae0fcbbf49
tree1aaa0aa02aef671ad81f7dcae835ac4715885fce
parentc4518a8480a5bb9bdd4316b453cdae586c30ab2e
Bug 3792 - Change default flow timeout values to 0

Current OF plugin sets the following default values if idle and
hard timeouts are not set in flow body:

Idle_timeout=300
hard_timeout=600
as per openflow spec, if user don't set hard-timeout and idle-timeout
value explicitly, switch will set it to 0 and consider the flow permanent
flow. So existing behavior is clearly violating the specs.

Change-Id: Ibb08d5913d8cb6b2c794e2206e4c854537f2ce7d
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/FlowConvertor.java
openflowplugin/src/test/java/org/opendaylight/openflowplugin/openflow/md/util/FlowCreatorUtilTest.java