X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflow-protocol-api%2Fsrc%2Fmain%2Fyang%2Fopenflow-instruction.yang;h=bbd61a9e7cbc46235a0474267bdc68e661594d8b;hb=082dc74f9950352712f25812637862f92a879676;hp=da945f8feee5d4ed9d8c8fc91960c904a4eda4ca;hpb=e655007e647b1a2e3b8fd6a1b76e1ddac6f8e832;p=openflowjava.git diff --git a/openflow-protocol-api/src/main/yang/openflow-instruction.yang b/openflow-protocol-api/src/main/yang/openflow-instruction.yang index da945f8f..bbd61a9e 100644 --- a/openflow-protocol-api/src/main/yang/openflow-instruction.yang +++ b/openflow-protocol-api/src/main/yang/openflow-instruction.yang @@ -5,9 +5,9 @@ module openflow-instruction { import openflow-types { prefix oft; } revision "2013-07-31" { - // description "Initial model"; + // description "OpenFlow 1.3 - instruction model"; } - /* + identity goto_table { //description " Setup the next table in the lookup pipeline"; base oft:instruction; @@ -36,48 +36,20 @@ module openflow-instruction { description "Experimenter instruction"; base oft:instruction; } - */ - // Structures - grouping goto-table { - description " Setup the next table in the lookup pipeline"; - leaf table { - type oft:table-id; // - } - } - grouping write-metadata { - description " Setup the metadata field for use later in pipeline"; - leaf metadata { - type oft:metadata; - } - leaf mask { - type oft:metadata; - } + container instruction-container { + uses instructions; } - grouping actions { - leaf type { - type enumeration { - enum write { - description " Write the action(s) onto the datapath action set"; - } - enum apply { - description " Applies the action(s) immediately"; - } - enum clear { - description " Clears all actions from the datapath action set"; + + grouping instructions { + list instructions { + key "type"; + leaf type { + type identityref { + base oft:instruction; } } } - list action { - // TBD - } - } - - grouping meter { - description " Apply meter (rate limiter)"; - leaf meter-id { - type oft:meter-id; - } } } \ No newline at end of file