Fixed a bug that failed specifying the value 0 on VLAN ID field for a match condition... 47/747/1
authorHideyuki Tai <h-tai@cd.jp.nec.com>
Tue, 30 Jul 2013 17:03:10 +0000 (13:03 -0400)
committerHideyuki Tai <h-tai@cd.jp.nec.com>
Tue, 30 Jul 2013 17:03:10 +0000 (13:03 -0400)
commit1ae37339c083b30bc564af4e608725c514b2e6b7
treeb83a91b2ec46ad6e7fbd75cbcf73190f1ca55711
parent2f14a41bbd09010114116aef1499641f7251bf83
Fixed a bug that failed specifying the value 0 on VLAN ID field for a match condition, and enabled to match VLAN untagged frames on OpenFlow switches.

- Fixed MatchType class to allow the value 0 on VLAN ID field for VLAN untagged frames.
- Changed FlowConverter class to convert the value 0 on VLAN ID field of SAL Flow into the value 0xffff of OF Flow, and vice-versa.

Signed-off-by: Hideyuki Tai <h-tai@cd.jp.nec.com>
opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/FlowConverter.java
opendaylight/protocol_plugins/openflow/src/test/java/org/opendaylight/controller/protocol_plugin/openflow/internal/FlowProgrammerServiceTest.java
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/match/MatchType.java
opendaylight/sal/api/src/test/java/org/opendaylight/controller/sal/match/MatchTest.java