X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fmodel%2Fmodel-flow-service%2Fsrc%2Fmain%2Fyang%2Fpacket-processing.yang;h=00ecdbacf08d5a8a87a0db80427b5a4c52ec0ff6;hb=79fc532382872d160d2f22119d32d8d6c0796886;hp=bfdf5049c3d8b585be5a94c949c4718945440c8d;hpb=723a5d5b870e81f4f0fe0fa5641b31fe4a609e93;p=controller.git diff --git a/opendaylight/md-sal/model/model-flow-service/src/main/yang/packet-processing.yang b/opendaylight/md-sal/model/model-flow-service/src/main/yang/packet-processing.yang index bfdf5049c3..00ecdbacf0 100644 --- a/opendaylight/md-sal/model/model-flow-service/src/main/yang/packet-processing.yang +++ b/opendaylight/md-sal/model/model-flow-service/src/main/yang/packet-processing.yang @@ -6,6 +6,8 @@ module packet-processing { import opendaylight-inventory {prefix inv;revision-date "2013-08-19";} import ietf-yang-types {prefix yang;revision-date "2010-09-24";} import opendaylight-l2-types {prefix types;revision-date "2013-08-27";} + import opendaylight-match-types {prefix match-type;revision-date "2013-10-26";} + import opendaylight-table-types {prefix table-type;revision-date "2013-10-26";} revision "2013-07-09" { description ""; @@ -34,11 +36,44 @@ module packet-processing { } } + identity packet-in-reason { + description "Base identity for all the available packet in reason"; + } + + identity no-match { + base packet-in-reason; + description "No matching flow in the classifier"; + } + + identity send-to-controller { + base packet-in-reason; + description "Explicit instruction to send packet to controller"; + } + + identity invalid-ttl { + base packet-in-reason; + description "Packet with invalid TTL"; + } notification packet-received { leaf cookie { type cookie; } + + leaf table-id { + type table-type:table-id; + } + + leaf packet-in-reason { + type identityref { + base packet-in-reason; + } + } + + container match { + uses match-type:match; + } + uses raw-packet; } @@ -56,4 +91,4 @@ module packet-processing { uses raw-packet; } } -} \ No newline at end of file +}