First complete pass at modeling flow_tables 51/10751/2
authorColin Dixon <colin@colindixon.com>
Thu, 4 Sep 2014 04:31:30 +0000 (23:31 -0500)
committerColin Dixon <colin@colindixon.com>
Thu, 4 Sep 2014 18:22:37 +0000 (13:22 -0500)
commit80eea26f3a032803c6b0712827300353f6b25cc9
tree7b9deb9cf0c2e56b70b1b1ebb881435cccc3c93f
parent8fe233b07143494a5506c03bbdcb84dee70fae04
First complete pass at modeling flow_tables

This provides a complete model for flow_tables and a test based on a simplified
version of the example from the spec.

A few current problems are:
* The properties priority and priority_rank can be a string or an integer in the
  spec, but must be a string in the model as it stands. This could possibly be
  fixed with unions in the future.
* Empty lists, e.g., "match_set": [], must be omitted. This shouldn't be an
  an issue as I don't think the spec differentiates between empty and omitted
  lists.
* The meta-member keywords: all, one_or_more, zero_or_more, exactly_one, and
  zero_or_one are currently not supported as intended. It's unclear if that will
  be possible or not.

Change-Id: If8a669c08055cbe90d3355e8beee5143e245d846
Signed-off-by: Colin Dixon <colin@colindixon.com>
ttp-model/src/main/yang/ttp.yang
ttp-model/src/test/java/org/opendaylight/ttp/model/test/TTPYangModelTest.java